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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage('Checkout Branch') {
|
||||
steps{
|
||||
sh '''
|
||||
cd /opt/workspace/coco_terraform_config/
|
||||
git checkout -b automatedSLOGeneration
|
||||
'''
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage('Install Required Python Packages') {
|
||||
|
|
@ -110,22 +115,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
stage('Create Pull Request') {
|
||||
steps {
|
||||
step {
|
||||
script {
|
||||
def now = new Date()
|
||||
timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
|
||||
// stage('Create Pull Request') {
|
||||
// steps {
|
||||
// script {
|
||||
// def now = new Date()
|
||||
// timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
|
||||
|
||||
dir("/opt/workspace/coco_terraform_config/") {
|
||||
sh 'git add .'
|
||||
sh ('git commit -m "${timestamp}"')
|
||||
sh 'git push origin automatedSLOGeneration'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// dir("/opt/workspace/coco_terraform_config/") {
|
||||
// sh 'git add .'
|
||||
// sh ('git commit -m "${timestamp}"')
|
||||
// sh 'git push origin automatedSLOGeneration'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
post {
|
||||
failure {
|
||||
|
|
|
|||
Loading…
Reference in New Issue