master
SLW\ARNAUA 2023-03-09 15:23:37 +01:00
parent 324c286759
commit 071c415a93
1 changed files with 25 additions and 8 deletions

33
Jenkinsfile vendored
View File

@ -111,24 +111,41 @@
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 {
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}"
}
withCredentials([gitUsernamePassword(credentialsId: "jaws_dynatrace_bitbuket_user", gitToolName: 'Default')]) {
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}"
}
}
}
}
}
// 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 {