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

don't downcase the conditional in multijob job [JENKINS-27025] #63

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

Conversation

timurb
Copy link

@timurb timurb commented Feb 19, 2015

Hi, this is a fix for https://issues.jenkins-ci.org/browse/JENKINS-27025

I have not tested it but I see no reasons why this would not work.

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@hagzag
Copy link
Member

hagzag commented Mar 2, 2015

@itaior did you see this one ?

@@ -133,7 +133,7 @@ private int getScmChange(AbstractProject subjob, PhaseJobsConfig phaseConfig, Ab

public boolean evalCondition(final String condition, final AbstractBuild<?, ?> build, final BuildListener listener) {
try {
return (Boolean) Eval.me(expandToken(condition, build, listener).toLowerCase().trim());
return (Boolean) Eval.me(expandToken(condition, build, listener).trim());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May break cases, which rely on the current behavior. Probably Eval should be made universal somehow

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oleg-nenashev I'm not certain that the conditional functionality is usable while being lower cased. Most groovy code won't evaluate without correct capitalization.

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.

5 participants