Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Environment variable to job #19

Closed
Roman-Bober opened this issue Feb 25, 2020 · 1 comment
Closed

Pass Environment variable to job #19

Roman-Bober opened this issue Feb 25, 2020 · 1 comment

Comments

@Roman-Bober
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants