Skip to content

Commit

Permalink
refactor nightly pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid committed Jan 5, 2024
1 parent a5f6806 commit a1e0c4f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions azure-pipelines-release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ pool:
- ImageOverride -equals MMS2022TLS

variables:
PackageSuffix: ''

steps:
- name: PackageSuffix
${{ if ne(variables['Build.SourceBranchName'], 'dev') }}:
value: 'ci.$(Build.BuildNumber)' # the "ci" section is to denote this payload is automatically released by the CI
${{ else }}:
value: ''

- task: PowerShell@2
displayName: 'Populate PackageSuffix'
inputs:
targetType: 'inline'
script: |
# the "ci" section is to denote this payload is automatically released by the CI
$versionSuffix = "ci.$(Build.BuildNumber)""
Write-Host "##vso[task.setvariable variable=PackageSuffix;]$versionSuffix"
steps:

# Configure all the .NET SDK versions we need
- task: UseDotNet@2
Expand Down

0 comments on commit a1e0c4f

Please sign in to comment.