From 65c6c40ab8ce496f4d44481c8c89980d84ddcdff Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Thu, 9 Mar 2023 12:09:59 +0100 Subject: [PATCH] modified --- Jenkinsfile | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f9223a7..4849cc7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -69,12 +69,17 @@ git branch: "${params.CBRANCH}", credentialsId: "jaws_dynatrace_bitbuket_user", url: "https://atc.bmwgroup.net/bitbucket/scm/opapm/coco_apm_slo_yaml2tf.git" } } + } + + } + + stage('Checkout Branch') { + steps{ sh ''' cd /opt/workspace/coco_terraform_config/ git checkout -b automatedSLOGeneration ''' } - } stage('Install Required Python Packages') { @@ -110,22 +115,20 @@ } } - stage('Create Pull Request') { - steps { - step { - script { - def now = new Date() - timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC')) + // stage('Create Pull Request') { + // steps { + // 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' + // } + // } + // } + // } post { failure {