aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaodong, Li <xiaodong.li@intel.com>2021-03-01 10:57:32 +0300
committerGitHub <noreply@github.com>2021-03-01 15:57:32 +0800
commit2e03e11e8d481a2d75fe924acbf16925642f303c (patch)
treeac17eaeb3d6c135d4506e66c0a1d2ddd99946c79
parentCI: updating windows test steps (#130) (diff)
downloadllvm-project-2e03e11e8d481a2d75fe924acbf16925642f303c.tar.gz
llvm-project-2e03e11e8d481a2d75fe924acbf16925642f303c.tar.bz2
llvm-project-2e03e11e8d481a2d75fe924acbf16925642f303c.zip
Will add retry/try catch protection for UB18 test (#134)
Signed-off-by: Xiaodong, Li <xiaodong.li@intel.com>
-rw-r--r--jenkinsfiles/UB18_Check.groovy37
1 files changed, 21 insertions, 16 deletions
diff --git a/jenkinsfiles/UB18_Check.groovy b/jenkinsfiles/UB18_Check.groovy
index 47d8db793c3f..154795c708cb 100644
--- a/jenkinsfiles/UB18_Check.groovy
+++ b/jenkinsfiles/UB18_Check.groovy
@@ -197,20 +197,25 @@ pipeline {
stage('Setting_Env') {
steps {
- script {
- try {
- sh script: """
- bash /export/users/oneDPL_CI/generate_env_file.sh ${env.OneAPI_Package_Date}
- if [ ! -f ./envs_tobe_loaded.txt ]; then
- echo "Environment file not generated."
- exit -1
- fi
- """, label: "Generate environment vars"
- }
- catch (e) {
- build_ok = false
- fail_stage = fail_stage + " " + "Setting_Env"
- sh script: "exit -1", label: "Set failure"
+ timeout(time: 20) {
+ script {
+ try {
+ retry(2) {
+ sh script: """
+ bash /export/users/oneDPL_CI/generate_env_file.sh ${env.OneAPI_Package_Date}
+ if [ ! -f ./envs_tobe_loaded.txt ]; then
+ echo "Environment file not generated."
+ exit -1
+ fi
+ """, label: "Generate environment vars"
+ }
+
+ }
+ catch (e) {
+ build_ok = false
+ fail_stage = fail_stage + " " + "Setting_Env"
+ sh script: "exit -1", label: "Set failure"
+ }
}
}
}
@@ -239,7 +244,7 @@ pipeline {
sh script: """
exit -1
"""
-
+
}
}
}
@@ -270,7 +275,7 @@ pipeline {
sh script: """
exit -1
"""
-
+
}
}
}