generated dsl options

480 weergaven
Naar het eerste ongelezen bericht

Matt Sheehan

ongelezen,
9 jul 2016, 17:09:0609-07-2016
aan job-dsl-plugin
I was updating some scripts to use the new generated DSL commands and ran into an issue. If I do this:
slackNotifier {
room 'deploys'
notifyFailure true
}
I get this exception:
javaposse.jobdsl.dsl.DslScriptException: (script, line 69) the following options are required and must be specified: teamDomain, authToken, buildServerUrl, sendAs, startNotification, notifyAborted, notifyNotBuilt, notifySuccess, notifyUnstable, notifyBackToNormal, notifyRepeatedFailure, includeTestSummary, commitInfoChoice, includeCustomMessage, customMessage

Is that right? Do all of the possible options need to be set now?


Daniel Spilker

ongelezen,
10 jul 2016, 15:11:2310-07-2016
aan job-dsl...@googlegroups.com
The Slack plugin uses a @DataBoundConstructor and all constructor parameters are mandatory.

https://github.com/jenkinsci/slack-plugin/blob/slack-2.0.1/src/main/java/jenkins/plugins/slack/SlackNotifier.java#L132

@DataBoundSetter should be used for optional parameters. Can you open a PR for the Slack plugin and move all optional parameters to @DataBoundSetters?

Daniel

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdZPVrNyYMz%2BvT5QBJNuumqBZsStWUiAX2HDiEpXRwAtfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Matt Sheehan

ongelezen,
14 jul 2016, 12:04:4714-07-2016
aan job-dsl...@googlegroups.com
Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten