-
Notifications
You must be signed in to change notification settings - Fork 111
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
[WIP][JENKINS-26583] Env-inject suppress variables contributed by extension points #37
Conversation
4d86aaa
to
2b20512
Compare
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
ba4ef97
to
2948c71
Compare
|
||
p.getBuildWrappersList().add(new ContributingWrapper("DISPLAY", "BUILD_VAL")); | ||
|
||
validate(p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't hide validation process in "mistic guest" this is antipattern of test writing. Use hamcrest matchers :) they cool
@lanwen, I have addressed your concerns. Using hamcrest for validation* would require bumping the inherited version. *) there are no |
@olivergondza thanks for quick reply! |
I would be also happy to see it merged |
The fix does not work is it should, I did not managed to untangle the injection logic IIRC. |
SonarQube analysis reported 10 issues: Watch the comments in this conversation to review them. |
+1 We use EnvInject plugin and Delivery Pipeline plugin, which uses Build Name Setter Plugin which sets $BUILD_DISPLAY_NAME. When $BUILD_DISPLAY_NAME is used in HipChat plugin message template, the value is not correct, uninstalling EnvInject plugin solves the problem. |
Deleting garbage comments from @dummy-lanwen-bot |
+1 for integrating it into EnvInject-2 |
I think we're seeing this problem in combination with the rvm plugin. GEM_PATH ends up with pre-rvm init values so it doesnt work. The job isnt using any envinject features, but it is still causing issues. |
I will check if I can integrate it towards the 2.1 release |
The 2.1 release came and went without this getting merged... any plans on getting this in to a future release? It's blocking my use of the nodejs plugin 😞 |
@fiznool There is a plan for it, but it is not trivial to fix it without breaking changes in other usa-cases. Right now I do not have so much spare time to work on EnvInject (the plugin is waiting for adoption), and effectively this change priority is being defined by the internal priorities of the company I work for. These priorities shift sometimes, hence I cannot commit on the ETA. If somebody proposes a fix, I will be happy to review it. |
Thanks for the update. I know how hard it is to maintain OSS. Hope you find
some time to carry out the necessary work at some point soon!
|
Created #124, which really fixes some bits |
Closing in favor of #125, which offers a partially working fix covering JENKINS-26583. |
JENKINS-26583