From 1f32eebb8556b7d359a60427e79697230eb35c28 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 12:07:03 +0100 Subject: [PATCH] modified --- Jenkinsfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 67af428..f9223a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,15 +112,17 @@ stage('Create Pull Request') { steps { - script { - def now = new Date() - timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC')) + step { + 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' + } + } } } }