Vendored
+1
-4
@@ -34,10 +34,7 @@ pipeline {
|
||||
// Read the jobspec.json file
|
||||
def jobSpec = readJSON file: 'jobspec.json'
|
||||
|
||||
// Write the updated jobspec back to the file
|
||||
def updatedJobSpec = sh(script: "jq '.meta[\"image_hash\"] = \"$imageHash\"' jobspec.json", returnStdout: true).trim()
|
||||
|
||||
sh 'curl -X POST -H "Content-Type: application/json" -d "$updatedJobSpec" http://nomad.service.consul:4646/v1/jobs'
|
||||
sh 'curl -X POST -H "Content-Type: application/json" -d "$jobSpec" http://nomad.service.consul:4646/v1/jobs'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user