modified
parent
324c286759
commit
071c415a93
|
|
@ -111,14 +111,17 @@
|
|||
|
||||
stage('Execute Script') {
|
||||
steps {
|
||||
sh "python3 /opt/workspace/coco_apm_slo_yaml2tf/generate.py /opt/workspace/shared_configuration/${params.INPUTFOLDER} /opt/workspace/coco_terraform_config/"
|
||||
dir("/opt/workspace/coco_apm_slo_yaml2tf/"){
|
||||
sh "python3 generate.py /opt/workspace/shared_configuration/${params.INPUTFOLDER} /opt/workspace/coco_terraform_config/"
|
||||
//Only required once CN is not reachable from EMEA
|
||||
//loopEnvironments(environments)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Push Changes') {
|
||||
steps {
|
||||
withCredentials([gitUsernamePassword(credentialsId: "jaws_dynatrace_bitbuket_user", gitToolName: 'Default')]) {
|
||||
script {
|
||||
dir("/opt/workspace/coco_terraform_config/") {
|
||||
sh "git status"
|
||||
|
|
@ -131,6 +134,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
// stage('Push Changes') {
|
||||
// steps {
|
||||
// script {
|
||||
// dir("/opt/workspace/coco_terraform_config/") {
|
||||
// sh "git status"
|
||||
// sh "git add ."
|
||||
// sh "git commit -m \"${env.timestamp}\""
|
||||
// sh "git push origin ${env.branch}"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
post {
|
||||
failure {
|
||||
emailext subject: "${env.JOB_NAME} build ${env.BUILD_ID} failed",
|
||||
|
|
|
|||
Loading…
Reference in New Issue