Commit 59e46eef authored by Michal Chruscinski's avatar Michal Chruscinski Committed by omarkanawi

[ONNX CI] Add retry to clone step (#3594)

* Add retry to clone step

* Increase checkout timeout
parent 0ab7b470
...@@ -85,19 +85,23 @@ def checkoutSources() { ...@@ -85,19 +85,23 @@ def checkoutSources() {
} }
sh "rm -rf ${WORKSPACE}/*" sh "rm -rf ${WORKSPACE}/*"
dir ("${WORKDIR}/ngraph") { dir ("${WORKDIR}/ngraph") {
retry(3) {
checkout([$class: 'GitSCM', checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_BRANCH}"]], branches: [[name: "${NGRAPH_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}", userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_REPO_ADDRESS}"]]]) url: "${NGRAPH_REPO_ADDRESS}"]]])
} }
}
dir ("${WORKDIR}/ngraph-onnx") { dir ("${WORKDIR}/ngraph-onnx") {
retry(3) {
checkout([$class: 'GitSCM', checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_ONNX_BRANCH}"]], branches: [[name: "${NGRAPH_ONNX_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}", userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_ONNX_REPO_ADDRESS}"]]]) url: "${NGRAPH_ONNX_REPO_ADDRESS}"]]])
} }
}
} }
pipeline { pipeline {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment