I have written a workflow script which builds our project. Inside the node
-block I checkout our sources from git:
node('nodeA') {
git url: 'https://github.com/foo/bar.git'
...
}
The workflow script itself is part of the source code. Now different developers have different forks of the git repo. Therefore the URL is different and I would like to get rid of the hard-coded URL in the script.
Is it possible to specify the Git repo URL in the Jenkins job configuration? And how gets the actual node
the source code?