-
Bug
-
Resolution: Fixed
-
Minor
-
None
The following script will cause an error because of the GString argument to room
def SLACK_CHANNEL = 'bar' job('example') { publishers { slackNotifier { room("foo-${SLACK_CHANNEL}") notifyAborted(true) notifyFailure(true) notifyNotBuilt(false) notifyUnstable(true) notifyBackToNormal(true) notifySuccess(false) notifyRepeatedFailure(false) startNotification(false) includeTestSummary(false) includeCustomMessage(false) customMessage(null) buildServerUrl(null) sendAs(null) commitInfoChoice('NONE') teamDomain(null) authToken(null) } } }
console log:
Processing provided DSL script ERROR: (script, line 6) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.room() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [foo-bar] Possible solutions: wait(), dump(), any(), find(), grep(), wait(long) Finished: FAILURE
- is duplicated by
-
JENKINS-39502 ghprb couldn't pass the variable for triggerPhrase
-
- Closed
-
- links to
[JENKINS-39153] GString not supported by automatically generated DSL
Remote Link | New: This issue links to "Groovy script fails to call Slack notification parameter from Jenkins DSL job (Web Link)" [ 14969 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | Original: Daniel Spilker [ daspilker ] | New: Rachel M. [ rachel ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Resolution | Original: Not A Defect [ 7 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Assignee | Original: Rachel M. [ rachel ] | New: Daniel Spilker [ daspilker ] |
Comment |
[ Oh, sorry deeply [~daspilker], I've just seen you maintain the Job DSL Plugin and I thought it was a user's problem. !https://s-media-cache-ak0.pinimg.com/236x/66/92/da/6692da3d184952e8dae08d024ecd0fce.jpg! ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is duplicated by |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |