From fde65f1fe03cda8ae95d94a78fd14af7868318c2 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 12:55:31 +0100 Subject: [PATCH] modified --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2e95cf3..1de5f66 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -77,7 +77,7 @@ steps{ script { def now = new Date() - env.timestamp = now.format("yyMMdd-HHmm", TimeZone.getTimeZone('UTC')) + env.timestamp = now.format("yyMMdd-HHmm", TimeZone.getTimeZone('GMT')) println env.timestamp env.branch = env.timestamp+"-automatedSLOGeneration" dir("/opt/workspace/coco_terraform_config/") { @@ -123,6 +123,7 @@ steps { script { dir("/opt/workspace/coco_terraform_config/") { + sh "git status" sh "git add ." sh "git commit -m \"${env.timestamp}\"" sh "git push origin ${env.branch}"