[skip e2e]Add retry for jenkinsfile checker (#15329)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
pull/15375/head
Jenny Li 2022-01-25 10:25:40 +08:00 committed by GitHub
parent 3a024307f4
commit c0b933207c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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