From bb60820c425fb83db46f142655f65eb36147e976 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 12:45:07 +0100 Subject: [PATCH] modified --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 62b5853..aaf400d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -77,10 +77,11 @@ steps{ script { def now = new Date() - def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC')) + def timestamp = now.format("yyMMdd-HHmm", TimeZone.getTimeZone('UTC')) + println timestamp def branch = timestamp+"-automatedSLOGeneration" dir("/opt/workspace/coco_terraform_config/") { - sh 'git checkout -b "${branch}"' + sh "git checkout -b \"${branch}\"" } } } @@ -122,9 +123,9 @@ steps { script { dir("/opt/workspace/coco_terraform_config/") { - sh 'git add .' - sh 'git commit -m "${timestamp}"' - sh 'git push origin ${branch}' + sh "git add ." + sh "git commit -m \"${timestamp}\"" + sh "git push origin ${branch}" } } }