--- /dev/null
+{
+ "instanceUrl": "https://devdiv.visualstudio.com/",
+ "template": "TFSDEVDIV",
+ "projectName": "DEVDIV",
+ "areaPath": "DevDiv\\NET Runtime\\Diagnostics\\SDL",
+ "iterationPath": "DevDiv",
+ "notificationAliases": [ "clrdiag-sdl@microsoft.com" ],
+ "repositoryName": "diagnostics",
+ "codebaseName": "diagnostics"
+ }
\ No newline at end of file
--- /dev/null
+parameters:
+- name: runtimeFeed
+ displayName: Feed for runtime installation
+ type: string
+ default: default
+ values:
+ - default
+- name: runtimeFeedToken
+ displayName: Base 64 SAS Token for runtime installation
+ type: string
+ default: default
+ values:
+ - default
+
+trigger:
+ none
+
+schedules:
+ - cron: 0 3 * * SUN
+ displayName: Weekly Sunday CodeQL run
+ branches:
+ include:
+ - main
+ always: true
+
+variables:
+ # CG is handled in the primary CI pipeline
+ - name: skipComponentGovernanceDetection
+ value: true
+
+stages:
+- stage: build
+ displayName: Build and Test Diagnostics
+ jobs:
+ - template: /eng/build.yml
+ parameters:
+ name: Windows
+ osGroup: Windows_NT
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: x64
+ Build_Release_x86:
+ _BuildConfig: Release
+ _BuildArch: x86
+ Build_Release_arm:
+ _BuildConfig: Release
+ _BuildArch: arm
+ Build_Release_arm64:
+ _BuildConfig: Release
+ _BuildArch: arm64
+
+ - template: /eng/build.yml
+ parameters:
+ name: CentOS_7
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-3e800f1-20190501005343
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: x64
+
+ - template: /eng/build.yml
+ parameters:
+ name: Alpine3_13
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.13-WithNode-20210910135845-c401c85
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: x64
+
+ - template: /eng/build.yml
+ parameters:
+ name: MacOS
+ osGroup: MacOS
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: x64
+
+ - template: /eng/build.yml
+ parameters:
+ name: MacOS_arm64
+ osGroup: MacOS_cross
+ crossbuild: true
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: arm64
+
+ - template: /eng/build.yml
+ parameters:
+ name: Linux_arm
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-20210719121212-8a8d3be
+ crossrootfsDir: '/crossrootfs/arm'
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: arm
+
+ - template: /eng/build.yml
+ parameters:
+ name: Linux_arm64
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-20210719121212-8a8d3be
+ crossrootfsDir: '/crossrootfs/arm64'
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: arm64
+
+ - template: /eng/build.yml
+ parameters:
+ name: Linux_musl_arm
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm-alpine-20210923140502-78f7860
+ crossrootfsDir: '/crossrootfs/arm'
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: arm
+
+ - template: /eng/build.yml
+ parameters:
+ name: Linux_musl_arm64
+ osGroup: Linux
+ dockerImage: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-cross-arm64-alpine-20210923140502-78f7860
+ crossrootfsDir: '/crossrootfs/arm64'
+ isCodeQLRun: true
+ strategy:
+ matrix:
+ Build_Release:
+ _BuildConfig: Release
+ _BuildArch: arm64
\ No newline at end of file
dependsOn: ''
artifactsTargetPath: ''
requiresCapPtraceContainer: false
+ isCodeQLRun: false
jobs:
- template: /eng/common/templates/job/job.yml
--docker-image $(_DockerImageName)
--source-directory $(Build.SourcesDirectory)
--container-name diagnostics-$(Build.BuildId)
-
- - ${{ if eq(parameters.buildAndSkipTest, 'true') }}:
+ - ${{ if eq(parameters.isCodeQLRun, 'true') }}:
+ - name: Codeql.Enabled
+ value: True
+ - name: Codeql.Cadence
+ value: 0
+ - name: Codeql.TSAEnabled
+ value: True
+ - name: Codeql.BuildIdentifier
+ value: $(System.JobDisplayName)
+ - name: Codeql.Language
+ value: csharp,cpp
+
+ - ${{ if or(eq(parameters.buildAndSkipTest, 'true'), eq(parameters.isCodeQLRun, 'true')) }}:
- _TestArgs: ''
- _InternalInstallArgs: ''
# For testing msrc's and service releases. The RuntimeSourceVersion is either "default" or the service release version to test
- - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
+ - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.isCodeQLRun, 'false')) }}:
- _InternalInstallArgs:
-dotnetruntimeversion '$(DotnetRuntimeVersion)'
-dotnetruntimedownloadversion '$(DotnetRuntimeDownloadVersion)'
sourceFolder: $(Build.ArtifactStagingDirectory)/__download__/Build_$(_BuildConfig)/bin/Linux.$(_BuildArch).$(_BuildConfig)
targetFolder: '$(Build.SourcesDirectory)/artifacts/bin/Linux.$(_BuildArch).$(_BuildConfig)'
+ - ${{ if eq(parameters.isCodeQLRun, 'true') }}:
+ - task: CodeQL3000Init@0
+ displayName: CodeQL Initialize
+
- script: $(_dockerEnv) $(_buildScript)
-configuration $(_BuildConfig)
-architecture $(_BuildArch)
env:
ROOTFS_DIR: ${{ parameters.crossrootfsDir }}
+ - ${{ if eq(parameters.isCodeQLRun, 'true') }}:
+ - task: CodeQL3000Finalize@0
+ displayName: CodeQL Finalize
+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- task: CopyFiles@2
displayName: Gather binaries for publish to artifacts
continueOnError: true
condition: always()
- - ${{ if eq(parameters.buildAndSkipTest, 'false') }}:
+ - ${{ if and(eq(parameters.buildAndSkipTest, 'false'), eq(parameters.isCodeQLRun, 'false')) }}:
# Publish test results to Azure Pipelines
- task: PublishTestResults@2
inputs: