master
SLW\ARNAUA 2023-03-09 12:14:46 +01:00
parent 65c6c40ab8
commit a24ae9f052
1 changed files with 14 additions and 14 deletions

28
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@
// agent {label 'jaws-slaves'}
agent {label 'jaws-slaves'}
parameters {
string(name: 'INPUTFOLDER', defaultValue: '/', description: 'Enter the business line (aka department) folder e.g. DE-3')
string(name: 'INPUTFOLDER', defaultValue: '', 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 coco_apm_slo_yaml2tf repository')
@ -115,20 +115,20 @@
}
}
// stage('Create Pull Request') {
// steps {
// 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 {