master
SLW\ARNAUA 2023-03-09 12:09:59 +01:00
parent 1f32eebb85
commit 65c6c40ab8
1 changed files with 19 additions and 16 deletions

35
Jenkinsfile vendored
View File

@ -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 {