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') { stage('Execute Script') {
steps { 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 //Only required once CN is not reachable from EMEA
//loopEnvironments(environments) //loopEnvironments(environments)
}
} }
} }
stage('Push Changes') { stage('Push Changes') {
steps { steps {
script { withCredentials([gitUsernamePassword(credentialsId: "jaws_dynatrace_bitbuket_user", gitToolName: 'Default')]) {
dir("/opt/workspace/coco_terraform_config/") { script {
sh "git status" dir("/opt/workspace/coco_terraform_config/") {
sh "git add ." sh "git status"
sh "git commit -m \"${env.timestamp}\"" sh "git add ."
sh "git push origin ${env.branch}" 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 { post {