modified
parent
1f32eebb85
commit
65c6c40ab8
|
|
@ -69,12 +69,17 @@
|
||||||
git branch: "${params.CBRANCH}", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_slo_yaml2tf.git"
|
git branch: "${params.CBRANCH}", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_slo_yaml2tf.git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Checkout Branch') {
|
||||||
|
steps{
|
||||||
sh '''
|
sh '''
|
||||||
cd /opt/workspace/coco_terraform_config/
|
cd /opt/workspace/coco_terraform_config/
|
||||||
git checkout -b automatedSLOGeneration
|
git checkout -b automatedSLOGeneration
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Install Required Python Packages') {
|
stage('Install Required Python Packages') {
|
||||||
|
|
@ -110,22 +115,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Create Pull Request') {
|
// stage('Create Pull Request') {
|
||||||
steps {
|
// steps {
|
||||||
step {
|
// script {
|
||||||
script {
|
// def now = new Date()
|
||||||
def now = new Date()
|
// timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
|
||||||
timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
|
|
||||||
|
|
||||||
dir("/opt/workspace/coco_terraform_config/") {
|
// dir("/opt/workspace/coco_terraform_config/") {
|
||||||
sh 'git add .'
|
// sh 'git add .'
|
||||||
sh ('git commit -m "${timestamp}"')
|
// sh ('git commit -m "${timestamp}"')
|
||||||
sh 'git push origin automatedSLOGeneration'
|
// sh 'git push origin automatedSLOGeneration'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
post {
|
||||||
failure {
|
failure {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue