greywolf82
greywolf82

Reputation: 22193

Jenkins pass parameter from Git repository

I'm using an hook in my GIT repository to trigger a build in Jenkins. I'm using

curl http://<IP>/jenkins/job/Test/buildWithParameters?token=mytoken&PUSHEDGITTAG=0000

I created a job Test and I enabled the parametrized build using a string parameter called PUSHEDGITTAG. I'm using a simple build with shell step:

echo ${PUSHEDGITTAG}

The job is actually triggered but the variable is always empty. How come?

Upvotes: 1

Views: 19

Answers (0)

Related Questions