Skip to content

Commit

Permalink
fix: sleep constant duration instead of RANDOM duration
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto Ojeda <[email protected]>
  • Loading branch information
ernestojeda committed Nov 6, 2023
1 parent 05349e3 commit c056be9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vars/edgeXRelease.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ def parallelStepFactoryTransform(step) {
stage("Git Tag Publish") {
edgeXReleaseGitTag(step, [credentials: "edgex-jenkins-ssh", bump: false, tag: true])

// this will add a random sleep (1-5 sec) to space out the stage artifact jobs after the git tagging
sh 'sleep $[ ( $RANDOM % 5 ) + 1 ]s'
sh 'sleep 3'
}
try {
stage("Stage Artifact") {
Expand Down

0 comments on commit c056be9

Please sign in to comment.