Skip to content

Commit 4edf74b

Browse files
committed
Work CD-CI
- Fixed steps conditions. Signed-off-by: José Simões <[email protected]>
1 parent 98d5c92 commit 4edf74b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ steps:
108108
- script: |
109109
gem install github_changelog_generator
110110
bundle exec github_changelog_generator --token $(GitHubToken) --future-release "v$(NBGV_Version)"
111-
condition: and( succeeded(), or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) )
111+
condition: and( in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'), or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) )
112112
displayName: Generate change log
113113

114114
# generate change log including future version
115115
- script: |
116116
gem install github_changelog_generator
117117
bundle exec github_changelog_generator --token $(GitHubToken)
118-
condition: and( succeeded(), not( or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) ) )
118+
condition: and( in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues'), not( or( eq(variables['Build.SourceBranchName'], 'master'), contains(variables['Build.SourceBranchName'], 'release') ) ) )
119119
displayName: Generate change log
120120

121121
# step from template @ nf-tools repo
@@ -124,5 +124,5 @@ steps:
124124
status: 'failure'
125125
webhookUrl: '$(DiscordWebhook)'
126126
message: ''
127-
condition: failed()
127+
condition: eq(variables['Agent.JobStatus'], 'Failed')
128128
displayName: report build failure to Discord

0 commit comments

Comments
 (0)