modified
parent
8bf5b8d81f
commit
fde65f1fe0
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue