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

[7.16](backport #1990) chore: add resiliency when provisioning the stack #1994

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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