master
SLW\ARNAUA 2023-03-09 12:55:31 +01:00
parent 8bf5b8d81f
commit fde65f1fe0
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -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}"