added retry mechanism
parent
78dfe8039a
commit
6b904db7b8
|
|
@ -18,6 +18,8 @@ def loopEnvironments(environments) {
|
|||
|
||||
def installRetryCount = 0
|
||||
def reportRetryCount = 0
|
||||
def checkRetryCount = 0
|
||||
def checkRetryCountSec = 0
|
||||
pipeline {
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
|
|
@ -74,10 +76,22 @@ def reportRetryCount = 0
|
|||
steps {
|
||||
parallel 'Checkout Repositories': {
|
||||
dir("/opt/workspace/shared_configuration/") {
|
||||
git branch: "master", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/shared_configuration.git"
|
||||
retry(3) {
|
||||
sleep(300*checkRetryCount)
|
||||
script {
|
||||
checkRetryCount = checkRetryCount + 1
|
||||
}
|
||||
git branch: "master", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/shared_configuration.git"
|
||||
}
|
||||
}
|
||||
dir("/opt/workspace/qm_report/") {
|
||||
git branch: "main", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/qm_report.git"
|
||||
retry(3) {
|
||||
sleep(300*checkRetryCountSec)
|
||||
script {
|
||||
checkRetryCountSec = checkRetryCountSec + 1
|
||||
}
|
||||
git branch: "main", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/qm_report.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue