added retry mechanism
parent
78dfe8039a
commit
6b904db7b8
|
|
@ -18,6 +18,8 @@ def loopEnvironments(environments) {
|
||||||
|
|
||||||
def installRetryCount = 0
|
def installRetryCount = 0
|
||||||
def reportRetryCount = 0
|
def reportRetryCount = 0
|
||||||
|
def checkRetryCount = 0
|
||||||
|
def checkRetryCountSec = 0
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
ansiColor('xterm')
|
ansiColor('xterm')
|
||||||
|
|
@ -74,14 +76,26 @@ def reportRetryCount = 0
|
||||||
steps {
|
steps {
|
||||||
parallel 'Checkout Repositories': {
|
parallel 'Checkout Repositories': {
|
||||||
dir("/opt/workspace/shared_configuration/") {
|
dir("/opt/workspace/shared_configuration/") {
|
||||||
|
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"
|
git branch: "master", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/shared_configuration.git"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
dir("/opt/workspace/qm_report/") {
|
dir("/opt/workspace/qm_report/") {
|
||||||
|
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"
|
git branch: "main", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/qm_report.git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Install Required Python Packages') {
|
stage('Install Required Python Packages') {
|
||||||
steps {
|
steps {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue