Skip to content

Commit

Permalink
fix(createArgusTestRun): retry 3 times
Browse files Browse the repository at this point in the history
since we are running into cases docker is failing
on this first stage, we would retry it 3 times
with hope it would be enough to avoid those type
of error

Ref: #9645
  • Loading branch information
fruch committed Jan 21, 2025
1 parent 2686304 commit db7b8c6
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions vars/createArgusTestRun.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

def call(Map params) {
def test_config = groovy.json.JsonOutput.toJson(params.test_config)
sh """#!/bin/bash
set -xe
retry(3) {
sh """#!/bin/bash
set -xe
echo "Creating Argus test run ..."
if [[ -n "${params.requested_by_user ? params.requested_by_user : ''}" ]] ; then
export BUILD_USER_REQUESTED_BY=${params.requested_by_user}
fi
export SCT_CLUSTER_BACKEND="${params.backend}"
export SCT_CONFIG_FILES=${test_config}
echo "Creating Argus test run ..."
if [[ -n "${params.requested_by_user ? params.requested_by_user : ''}" ]] ; then
export BUILD_USER_REQUESTED_BY=${params.requested_by_user}
fi
export SCT_CLUSTER_BACKEND="${params.backend}"
export SCT_CONFIG_FILES=${test_config}
./docker/env/hydra.sh create-argus-test-run
./docker/env/hydra.sh create-argus-test-run
echo " Argus test run created."
"""
echo " Argus test run created."
"""
}
if (!currentBuild.description) {
currentBuild.description = ''
}
Expand Down

0 comments on commit db7b8c6

Please sign in to comment.