I have a post-receive hook in GIT (works ok) which calls
http://ip:port/job/project_name/buildWithParameters?token=abc&ABC=qwe
ABC is my parameter which is defined in Jenkins' project as String parameter with default value xyz. URL has value qwe.
My Jenkins pipeline script is
pipeline { agent any stages { stage('Checkout') { steps { print env.ABC } } } }
When the build is triggered from GIT, env.ABC
prints xyz and not qwe.
How to get the value qwe from the URL ? My goal is to pass versioned tag name from GIT to pipeline.
Thanks