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

[JENKINS-52264] Avoid empty environment injection from configuration #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alex-Vol
Copy link

Fix empty environment issue in docker exec use case.

@jchauncey
Copy link

I'm running in to the same issue that this pr is attempting to fix so I want to build it locally to deploy it to our jenkins server in the meantime. However, Im having issues:

[ERROR] java.nio.file.NoSuchFileException: projects/jenkinsci/docker-workflow-plugin/target/classes/META-INF/annotations/hudson.Extension
[INFO] 1 error

@jchauncey
Copy link

Nevermind I just downloaded the hpi from the incrementals.

@jchauncey
Copy link

Ok I'm still seeing the following:

13:06:43 invalid argument "=" for "-e, --env" flag: invalid environment variable: =
13:06:43 See 'docker exec --help'.

@jchauncey
Copy link

Ok I figured out my issue and was able to fix it without this plugin.

Go to Manage Jenkins -> Configure System there will be an empty environment variable in the Global Properties section. If you remove that everything should work

@albertsj1
Copy link

Why in the world is this not merged yet? Such a small and simple fix to eliminate a very confusing and annoying problem.
Please merge this so it can get into the next release.
Thanks

@keijohyttinen
Copy link

This fix is very much needed as e.g. our optional but empty jenkins parameters will be empty env variables -> trigger the problem

@JungPhilipp
Copy link

Also waiting for this fix. Any chance this will be merged soon?

@Alex-Vol-SV
Copy link

Rebased to latest and cleaned up unintended whitespace changes.

@Alex-Vol-SV
Copy link

Could the maintainers of this plugin merge this simple pull request?

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

Successfully merging this pull request may close these issues.

7 participants