Skip to content

Commit

Permalink
Add names to release jobs and change release condition to use those n…
Browse files Browse the repository at this point in the history
…ames

[release]
  • Loading branch information
atruskie committed Apr 5, 2020
1 parent de17dc6 commit 90e70e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ stages:
jobs:
# this is really all quite ridiculous, but $(Build.SourceVersionMessage)
# is not defined until the step stage so, and only if source is checked out *sigh*
- job:
- job: checkRelease
displayName: Check if a release is needed
pool:
vmImage: ubuntu-latest
Expand All @@ -48,7 +48,7 @@ stages:
$commit_message = $commit.commit.message
Write-Output "Analyzing commit message for [release] tag:`n$commit_message"
$is_manual_release = $commit_message -ilike '*`[release`]*'
$ap_do_release = '$(AP_DO_RELEASE)'
$ap_do_release = '$[AP_DO_RELEASE]'
Write-Output "AP_DO_RELEASE: $ap_do_release"
$is_variable_release = $ap_do_release.Length -gt 0
$is_weekly_release = '$(Build.Reason)' -ieq 'Schedule'
Expand All @@ -57,11 +57,13 @@ stages:
Write-Output "##vso[task.setvariable variable=isWeeklyRelease;isOutput=true]$is_weekly_release"
Write-Output "##vso[task.setvariable variable=isVariableRelease;isOutput=true]$is_variable_release"
Write-Output "##vso[task.setvariable variable=shouldRelease;isOutput=true]$should_release"
name: calculateVariables
displayName: Get commit message and calculate release variables
env:
AUDIO_ANALYSIS_CI: $(AUDIO_ANALYSIS_CI)
- job:
displayName: Release
condition: eq(variables['shouldRelease'], 'true')
condition: eq(dependencies.checkRelease.outputs['calculateVariables.shouldRelease'], 'true')
pool:
vmImage: ubuntu-latest
steps:
Expand Down

0 comments on commit 90e70e3

Please sign in to comment.