diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index b12724d3..ed1fb455 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -1,28 +1,28 @@ schedules: -- cron: "0 0 * * *" - displayName: Nightly Build - branches: - include: - - dev - always: true + - cron: '0 0 * * *' + displayName: Nightly Build + branches: + include: + - dev + always: true trigger: batch: true branches: include: - - dev + - dev pr: branches: include: - - dev + - dev resources: repositories: - - repository: 1es - type: git - name: 1ESPipelineTemplates/1ESPipelineTemplates - ref: refs/tags/release + - repository: 1es + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release extends: template: v1/1ES.Unofficial.PipelineTemplate.yml@1es @@ -34,24 +34,29 @@ extends: sdl: codeql: - compiled: - enabled: true - runSourceLanguagesInSourceAnalysis: true + compiled: + enabled: true + runSourceLanguagesInSourceAnalysis: true stages: - - stage: Build - - jobs: - - template: /eng/ci/templates/jobs/build.yml@self - - stage: TestWindows - dependsOn: Build - - jobs: - - template: /eng/ci/templates/jobs/run-emulated-tests-windows.yml@self - - - stage: TestLinux - dependsOn: - - TestWindows - - jobs: - - template: /eng/ci/templates/jobs/run-emulated-tests-linux.yml@self + - stage: Build + variables: + Codeql.Language: java,powershell + Codeql.RunSourceLanguagesInSourceAnalysis: true + jobs: + - template: /eng/ci/templates/jobs/build.yml@self + + - stage: TestWindows + dependsOn: Build + variables: + Codeql.Language: csharp + jobs: + - template: /eng/ci/templates/jobs/run-emulated-tests-windows.yml@self + + - stage: TestLinux + dependsOn: + - TestWindows + variables: + Codeql.Enabled: false + jobs: + - template: /eng/ci/templates/jobs/run-emulated-tests-linux.yml@self