Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
chore: add resiliency when provisioning the stack (#1990) (#1993)
Browse files Browse the repository at this point in the history
(cherry picked from commit 54e882b)

Co-authored-by: Manuel de la Peña <[email protected]>
  • Loading branch information
mergify[bot] and mdelapenya authored Jan 12, 2022
1 parent aa8e9ad commit 0cdb257
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,13 @@ pipeline {
// Must be gathered after deployment as the public IP is known at that time
def stackRunner = getNodeIp(stackWorkspace, 'stack')

ansible(stackWorkspace,
env.RUN_ID.split('-')[0],
"-i \"${stackRunner.ip},\" -t setup-stack --extra-vars=\"nodeLabel=stack nodeImage=${stackMachine.image} nodeInstanceType=${stackMachine.instance_type}\"")
retryWithSleep(retries: 2, seconds: 5, backoff: true) {
ansible(
stackWorkspace,
env.RUN_ID.split('-')[0],
"-i \"${stackRunner.ip},\" -t setup-stack --extra-vars=\"nodeLabel=stack nodeImage=${stackMachine.image} nodeInstanceType=${stackMachine.instance_type}\""
)
}

// Update stash with latest changes from the stack deployment
stash allowEmpty: true, name: 'sourceEnvModified', useDefaultExcludes: false
Expand Down

0 comments on commit 0cdb257

Please sign in to comment.