diff --git a/mlir/utils/jenkins/Jenkinsfile b/mlir/utils/jenkins/Jenkinsfile index 8872f6c4394a..7bf8a9a05adc 100644 --- a/mlir/utils/jenkins/Jenkinsfile +++ b/mlir/utils/jenkins/Jenkinsfile @@ -73,8 +73,8 @@ void robustScmCheckout() { return } catch (err) { def msg = "${err}".toLowerCase() - if (!msg.contains("reference is not a tree")) { - // If it's not the "reference is not a tree" error, re-throw it to be caught by the outer block + if (!msg.contains("reference is not a tree") && !msg.contains("could not checkout")) { + // If it's not a known transient error, re-throw it to be caught by the outer block throw err }