Skip to content

Commit 4c6cbf4

Browse files
committed
Correct condition
Signed-off-by: Matthew B White <[email protected]>
1 parent 1b7d9be commit 4c6cbf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr)
99
# Daily build for final quality
1010
# cf https://crontab.guru/#0_23_*_*_*
1111
schedules:
12-
- cron: "0 23 * * *"
12+
- cron: "0 10,12,14,16,23 * * *"
1313
displayName: "Chaincode Java Nightly Driver"
1414
branches:
1515
include:
@@ -163,7 +163,7 @@ stages:
163163
# As the next script is more complex and uses loops, run this discretely in a sh file
164164
# Publishing step for git tags
165165
- stage: Publish_tag
166-
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
166+
condition: and(succeeded('Build_and_test'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
167167
jobs:
168168
- job: docker_publish
169169
steps:
@@ -207,7 +207,7 @@ stages:
207207
208208
#
209209
- stage: Publish_tag_nightly
210-
condition: and(succeeded(), eq(variables['Build.Reason'], 'Schedule')) # only run on the scheduled builds
210+
condition: and(succeeded('Build_and_test'), eq(variables['Build.Reason'], 'Schedule')) # only run on the scheduled builds
211211
jobs:
212212
- job: jar_publish
213213
steps:

0 commit comments

Comments
 (0)