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

Commit 0cdb257

Browse files
chore: add resiliency when provisioning the stack (#1990) (#1993)
(cherry picked from commit 54e882b) Co-authored-by: Manuel de la Peña <[email protected]>
1 parent aa8e9ad commit 0cdb257

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.ci/Jenkinsfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,13 @@ pipeline {
209209
// Must be gathered after deployment as the public IP is known at that time
210210
def stackRunner = getNodeIp(stackWorkspace, 'stack')
211211

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

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

0 commit comments

Comments
 (0)