Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading