mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip e2e]Add retry for jenkinsfile checker (#15329)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
3a024307f4
commit
c0b933207c
3
.github/workflows/jenkins-checker.yaml
vendored
3
.github/workflows/jenkins-checker.yaml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user