modified
parent
8bf5b8d81f
commit
fde65f1fe0
|
|
@ -77,7 +77,7 @@
|
||||||
steps{
|
steps{
|
||||||
script {
|
script {
|
||||||
def now = new Date()
|
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
|
println env.timestamp
|
||||||
env.branch = env.timestamp+"-automatedSLOGeneration"
|
env.branch = env.timestamp+"-automatedSLOGeneration"
|
||||||
dir("/opt/workspace/coco_terraform_config/") {
|
dir("/opt/workspace/coco_terraform_config/") {
|
||||||
|
|
@ -123,6 +123,7 @@
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
dir("/opt/workspace/coco_terraform_config/") {
|
dir("/opt/workspace/coco_terraform_config/") {
|
||||||
|
sh "git status"
|
||||||
sh "git add ."
|
sh "git add ."
|
||||||
sh "git commit -m \"${env.timestamp}\""
|
sh "git commit -m \"${env.timestamp}\""
|
||||||
sh "git push origin ${env.branch}"
|
sh "git push origin ${env.branch}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue