master
SLW\ARNAUA 2023-03-09 11:11:31 +01:00
parent 039cb63527
commit 281ca552cf
1 changed files with 7 additions and 4 deletions

11
Jenkinsfile vendored
View File

@ -29,6 +29,7 @@
string(name: 'INPUTFOLDER', defaultValue: 'DE-3', description: 'Enter the business line (aka department) folder e.g. DE-3')
string(name: 'ABRANCH', defaultValue: 'BusinessLine', description: 'Enter the branch for the shared_configuration repository')
string(name: 'BBRANCH', defaultValue: 'master', description: 'Enter the branch for the coco_terraform_config repository')
string(name: 'CBRANCH', defaultValue: 'master', description: 'Enter the branch for the slo-generator repository')
}
@ -64,6 +65,9 @@
dir("/opt/workspace/coco_terraform_config/") {
git branch: "${params.BBRANCH}", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_terraform_config.git"
}
dir("/opt/workspace/slo-generator/") {
git branch: "${params.BBRANCH}", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_slo_yaml2tf.git"
}
}
}
@ -88,10 +92,9 @@
stage('Execute Script') {
steps {
sh "python3 generate.py ./shared_configuration/${params.INPUTFOLDER}"
dir("/opt/workspace/slo-generator/") {
sh "python3 generate.py ../shared_configuration/${params.INPUTFOLDER}"
}
//Only required once CN is not reachable from EMEA
//loopEnvironments(environments)
}