Jenkinsfile issue while running script with sh – CentOS
I have the following Jenkinsfile def ARTIFACTS_JOB_ID; def ARTIFACTS_URL; node('CentOs') { checkout scm stage('Example') { echo 'Download artifacts' sh 'curljson --header "PRIVATE-TOKEN: tdzis3" "https://gitlab-sample.com/api/v4/projects/63/jobs" > jobs.json' ARTIFACTS_JOB_ID = sh(returnStdout: true, script: 'python GetID.py').trim() ARTIFACTS_URL = "https://gitlab-sample.com/api/v4/projects/63/jobs/${ARTIFACTS_JOB_ID}/artifacts" echo "======> $ARTIFACTS_URL" sh…