From c0b933207ca49b7b22c1b28ca1cfc6452fc6455a Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Tue, 25 Jan 2022 10:25:40 +0800 Subject: [PATCH] [skip e2e]Add retry for jenkinsfile checker (#15329) Signed-off-by: Jenny Li --- .github/workflows/jenkins-checker.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jenkins-checker.yaml b/.github/workflows/jenkins-checker.yaml index 7e412dae8c..f98013a133 100644 --- a/.github/workflows/jenkins-checker.yaml +++ b/.github/workflows/jenkins-checker.yaml @@ -7,6 +7,7 @@ on: # file paths to consider in the event. Optional; defaults to all. paths: - 'build/ci/jenkins/**' + - '.github/workflows/jenkins-checker.yaml' jobs: check-jenkinsfile: name: Jenkinsfile Checker @@ -23,7 +24,7 @@ jobs: function validate(){ local file_path=${1:-Jenkinsfile} - response=$(curl -X POST -H $JENKINS_CRUMB -F "jenkinsfile=<${file_path}" $JENKINS_URL/pipeline-model-converter/validate) + response=$(curl --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 40 -X POST -H $JENKINS_CRUMB -F "jenkinsfile=<${file_path}" $JENKINS_URL/pipeline-model-converter/validate) if [[ ${response} =~ "Error" ]] then