diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 869860d97e525..be3a1b0819088 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -41,20 +41,15 @@ schedules: - cron: "0 8 23-29 * 0" displayName: "Monthly smoke test" branches: - include: + include: - main - release/* - exclude: + exclude: - "" always: true # Run even if there have been no source code changes since the last successful scheduled run batch: false # Do not run the pipeline if the previously scheduled run is in-progress -# The variables `_DotNetArtifactsCategory` and `_DotNetValidationArtifactsCategory` are required for proper publishing of build artifacts. See https://github.com/dotnet/roslyn/pull/38259 variables: - - name: _DotNetArtifactsCategory - value: .NETCore - - name: _DotNetValidationArtifactsCategory - value: .NETCoreValidation - group: DotNet-Roslyn-SDLValidation-Params - name: Codeql.Enabled value: true @@ -271,13 +266,13 @@ extends: - task: MicroBuildSigningPlugin@4 inputs: - signType: $(SignType) + signType: ${{ parameters.SignType }} zipSources: false feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json # Set ConnectedPMEServiceName if the build is a CI build, otherwise it is not needed ${{ if eq(variables['Build.Reason'], 'IndividualCI') }}: ConnectedPMEServiceName: 248d384a-b39b-46e3-8ad5-c2c210d5e7ca - condition: and(succeeded(), in(variables['SignType'], 'test', 'real')) + condition: and(succeeded(), in('${{ parameters.SignType }}', 'test', 'real')) - task: PowerShell@2 displayName: Build @@ -293,16 +288,14 @@ extends: -binaryLog -configuration $(BuildConfiguration) -officialBuildId $(Build.BuildNumber) - -officialSkipTests $(SkipTests) - -officialSkipApplyOptimizationData $(SkipApplyOptimizationData) + -officialSkipTests ${{ parameters.SkipTests }} + -officialSkipApplyOptimizationData ${{ parameters.SkipApplyOptimizationData }} -officialSourceBranchName $(SourceBranchName) - -officialIbcDrop $(IbcDrop) + -officialIbcDrop ${{ parameters.IbcDrop }} -officialVisualStudioDropAccessToken $(_DevDivDropAccessToken) /p:RepositoryName=$(Build.Repository.Name) /p:VisualStudioDropName=$(VisualStudio.DropName) - /p:DotNetSignType=$(SignType) - /p:PublishToSymbolServer=true - /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory) + /p:DotNetSignType=${{ parameters.SignType }} /p:DotnetPublishUsingPipelines=true /p:IgnoreIbcMergeErrors=true /p:GenerateSbom=true @@ -337,7 +330,7 @@ extends: testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml' mergeTestResults: true testRunTitle: 'Unit Tests' - condition: and(succeededOrFailed(), ne(variables['SkipTests'], 'true')) + condition: and(succeededOrFailed(), ${{ not(parameters.SkipTests) }}) # Publish to Build Asset Registry - template: /eng/common/templates-official/job/publish-build-assets.yml@self