From 6ebd843f0434a9e7dd857272e7394cd214c2aaf2 Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Fri, 17 Jan 2025 22:47:14 +0100 Subject: [PATCH] fix jenkinsfile --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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' } } }