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

[FIX JENKINS-39700] Don't fail when no parameters property for job #2660

Merged
merged 1 commit into from
Dec 12, 2016

Conversation

daniel-beck
Copy link
Member

Likely fallout from OptionalJobProperty introduction in 1.637 (!) a year ago. External monitor job sure is popular.

@jglick says in JENKINS-33991 that there's no guarantee that a ParametersDefinitionProperty if present also has at least one parameter, so just rip out this likely obsolete check.

@daniel-beck daniel-beck added needs-more-reviews Complex change, which would benefit from more eyes work-in-progress The PR is under active development, not ready to the final review labels Dec 9, 2016
@oleg-nenashev
Copy link
Member

I'm not sure it's a good approach to just delete the code. Maybe the private method should just check existence of the Object and do nothing if it is missing

@daniel-beck
Copy link
Member Author

@oleg-nenashev What's the point? As JENKINS-33991 describes, at least Freestyle jobs don't hit that check anyway.

@daniel-beck daniel-beck removed the work-in-progress The PR is under active development, not ready to the final review label Dec 10, 2016
@daniel-beck
Copy link
Member Author

@jenkinsci/code-reviewers

@oleg-nenashev
Copy link
Member

If this is a dead code for freestyles, 👍 from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-reviews Complex change, which would benefit from more eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants