I have a Jenkins job where I pull code from github using Git plugin. Due to networking limitations the only way I can do it is by making https calls with username and password as part of the git project url
https://${username}:${passsword}@github.com/${project}.git
${project}
is being parameterized on job level but ${username}
and ${password}
is currently hardcoded in the url. I would like to externalize it somehow to some kind of global config. I tried several ways like global properties, system env etc. but none worked. Neither ${username}
nor ${password}
is being replaced by Jenkins. The only working way (so far - for me) is to make it a job parameter but I wanted to make it global for all my jobs.
Any ideas? Thanks!