another try
Gitea/homepage/pipeline/head This commit looks good

This commit is contained in:
Georgios Jason Efstathiou
2025-01-17 22:50:42 +01:00
parent f444f93b0b
commit 6418d78e7d
Vendored
+2 -4
View File
@@ -28,10 +28,8 @@ pipeline {
stage('Deploy to Nomad') {
steps {
script {
// Read the jobspec.json file
def jobSpec = readFile 'jobspec.json'
sh 'curl -X POST -H "Content-Type: application/json" -d "$jobSpec" http://nomad.service.consul:4646/v1/jobs'
// Post jobspec.json to http://nomad.service.consul:4646/v1/jobs
sh 'curl -X POST -d @jobspec.json http://nomad.service.consul:4646/v1/jobs'
}
}
}