master
SLW\ARNAUA 2023-03-09 12:37:48 +01:00
parent 1010765b54
commit 4eb6b1ab7a
1 changed files with 7 additions and 5 deletions

12
Jenkinsfile vendored
View File

@ -75,12 +75,14 @@
stage('Checkout Branch') {
steps{
def now = new Date()
def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
def branch = timestamp+"-automatedSLOGeneration"
dir("/opt/workspace/coco_terraform_config/") {
sh 'git checkout -b "${branch}"'
step {
def now = new Date()
def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
def branch = timestamp+"-automatedSLOGeneration"
dir("/opt/workspace/coco_terraform_config/") {
sh 'git checkout -b "${branch}"'
}
}
}
}