diff --git a/Jenkinsfile b/Jenkinsfile index 401f965..65a2933 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } }