-
Bug
-
Resolution: Duplicate
-
Major
-
jenkins v2.28
ghprb-plugin v1.32.2
job-dsl-plugin v1.5.2
This is DSL script code:
def phrase = 'testphrase' job("test_job") { displayName('test_job') scm { git { remote { github('xxx/xxx') refspec('+refs/pull/*:refs/remotes/origin/pr/*') } branch('${sha1}') } } triggers { ghprbTrigger { adminlist("") whitelist("") cron("") orgslist('xxx') triggerPhrase("${phrase}") onlyTriggerPhrase(true) useGitHubHooks(true) permitAll(false) autoCloseFailedPullRequests(false) displayBuildErrorsOnDownstreamBuilds(false) commentFilePath("") skipBuildPhrase("") allowMembersOfWhitelistedOrgsAsAdmin(true) msgSuccess("") msgFailure("") commitStatusContext("") gitHubAuthId("") buildDescTemplate("") } } }
This is what I got:
No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.triggerPhrase() is applicable for argument types: (org.codehaus.groovy.runtime.GStringImpl) values: [testphrase]
- duplicates
-
JENKINS-39153 GString not supported by automatically generated DSL
- Closed