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

resolve #232 use DataBoundSetter for optional params #236

Merged
merged 1 commit into from
Feb 26, 2017
Merged

resolve #232 use DataBoundSetter for optional params #236

merged 1 commit into from
Feb 26, 2017

Conversation

sheehan
Copy link
Contributor

@sheehan sheehan commented Jul 14, 2016

Modify SlackNotifier to use DataBoundSetter instead of constructor params. This resolves #232.

See also https://groups.google.com/forum/#!topic/job-dsl-plugin/JWO7zDuMYVA

@samrocketman
Copy link
Member

Seems like a relatively straight forward change. I'll leave this open for review for others to comment.

@zafarella
Copy link

pls merge

@daspilker
Copy link
Member

@kmadel can you merge this please? I want to drop the built-in support for the Slack plugin in the next release of the Job DSL plugin. Without @DataBoundSetter, the DSL needs to consider all options as mandatory. This would be a major setback for DSL users as the need to inflate their script by adding many options with their default vault.

@daspilker
Copy link
Member

@sheehan can you ask on the Jenkins dev list for commit access to this repo to get this merged?

@MichaelPereira
Copy link

This change would be welcome, please consider asking for review or commit access to https://groups.google.com/forum/#!forum/jenkinsci-dev @sheehan, thanks ! 😄

@kmadel
Copy link
Contributor

kmadel commented Dec 6, 2016

I will be happy to merge once the conflict is resolved and there are two thumbs up for a code review.

@sheehan
Copy link
Contributor Author

sheehan commented Dec 6, 2016

rebased

@daspilker
Copy link
Member

daspilker commented Dec 6, 2016

looks good 👍

@fgs-dbudwin
Copy link
Contributor

Any progress on this? Looks a like another rebase is in order @sheehan

@sheehan
Copy link
Contributor Author

sheehan commented Feb 15, 2017

up to date

@samrocketman
Copy link
Member

I'll review this next week and merge it if nothing is done by then. Currently, other life events have my attn this week.

@samrocketman
Copy link
Member

I just upgraded my automated scripts for bootstrapping Jenkins configured with slack. https://github.com/samrocketman/jenkins-bootstrap-slack I'm going to test this today and if all checks out I'll merge it.

@samrocketman samrocketman merged commit dc6659e into jenkinsci:master Feb 26, 2017
@samrocketman
Copy link
Member

Tested and works just fine.

@daspilker
Copy link
Member

Thanks for merging this. Are you planning to cut a release anytime soon?

@samrocketman
Copy link
Member

Yeah, I'm trying to get a few more PRs rebased/merge. However, I'm willing to commit to a release by this coming weekend.

@Daniel15
Copy link
Member

Daniel15 commented Mar 4, 2017

Thanks for this pull request. I'm not using the Slack plugin, but this helped me understand the exact same issue with another plugin.

@daspilker - Is the fact that plugins should use DataBoundSetters for Job DSL documented anywhere?

@daspilker
Copy link
Member

@Daniel15 use DataBoundConstructor for mandatory settings and DataBoundSetter for optional settings.

Daniel15 added a commit to jenkinsci/github-issues-plugin that referenced this pull request Mar 4, 2017
…oundSetter so that Job DSL treats them as optional

References jenkinsci/slack-plugin#236
@Daniel15
Copy link
Member

Daniel15 commented Mar 4, 2017

@daspilker - Sure, I understand that now, but is it mentioned in documentation anywhere (either Jenkins docs or Job DSL docs)? 😃

@samrocketman samrocketman added this to the slack-2.2 milestone Mar 6, 2017
@samrocketman
Copy link
Member

@daspilker feel free to subscribe to #296 for release updates.

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.

add defaults for slackNotifier job DSL api
8 participants