dave-hagedorn / jenkins-runner

VS Code plugin to develop and run Jenkins Pipeline scripts
MIT License
30 stars 8 forks source link

Pass Environment variable to job #19

Closed Roman-Bober closed 4 years ago

Roman-Bober commented 4 years ago

Hi, I use gitlab integrations with jenkins So when job runs, heavily using the environment variables sent by gitlab to jenkins job such as: gitlabSourceRepoName gitlabBranch

Is it possible to set those variables synthetically (like int the "parameters" of job config)?

Thank you, Roman

dave-hagedorn commented 4 years ago

Hi @Roman-Bober - I think I have something that will work, and should make the next release.

It requires a user to have the envinject plugin installed. If detected, the plugin will leverage that to override environment variables before running the job.