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') { stage('Checkout Branch') {
steps{ steps{
def now = new Date() step {
def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC')) def now = new Date()
def branch = timestamp+"-automatedSLOGeneration" def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
dir("/opt/workspace/coco_terraform_config/") { def branch = timestamp+"-automatedSLOGeneration"
sh 'git checkout -b "${branch}"' dir("/opt/workspace/coco_terraform_config/") {
sh 'git checkout -b "${branch}"'
} }
}
} }
} }