modified
parent
dd1d2492c4
commit
bb60820c42
|
|
@ -77,10 +77,11 @@
|
||||||
steps{
|
steps{
|
||||||
script {
|
script {
|
||||||
def now = new Date()
|
def now = new Date()
|
||||||
def timestamp = now.format("yyMMdd.HHmm", TimeZone.getTimeZone('UTC'))
|
def timestamp = now.format("yyMMdd-HHmm", TimeZone.getTimeZone('UTC'))
|
||||||
|
println timestamp
|
||||||
def branch = timestamp+"-automatedSLOGeneration"
|
def branch = timestamp+"-automatedSLOGeneration"
|
||||||
dir("/opt/workspace/coco_terraform_config/") {
|
dir("/opt/workspace/coco_terraform_config/") {
|
||||||
sh 'git checkout -b "${branch}"'
|
sh "git checkout -b \"${branch}\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -122,9 +123,9 @@
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
dir("/opt/workspace/coco_terraform_config/") {
|
dir("/opt/workspace/coco_terraform_config/") {
|
||||||
sh 'git add .'
|
sh "git add ."
|
||||||
sh 'git commit -m "${timestamp}"'
|
sh "git commit -m \"${timestamp}\""
|
||||||
sh 'git push origin ${branch}'
|
sh "git push origin ${branch}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue