From f444f93b0bdddefd3da5a2caa41dedfbf8de48d9 Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Fri, 17 Jan 2025 22:49:37 +0100 Subject: [PATCH] maybe fix fix it? --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 65a2933..448f0d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,11 +28,8 @@ pipeline { stage('Deploy to Nomad') { steps { script { - // Calculate the hash of your Docker image (or your application code) - def imageHash = sh(script: "docker images --no-trunc $IMAGE_NAME | grep latest | awk '{print \$3}'", returnStdout: true).trim() - // Read the jobspec.json file - def jobSpec = readJSON file: 'jobspec.json' + def jobSpec = readFile 'jobspec.json' sh 'curl -X POST -H "Content-Type: application/json" -d "$jobSpec" http://nomad.service.consul:4646/v1/jobs' }