javaposse.jobdsl.dsl.DslScriptException: (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1] Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)

Jenkins JIRA | C WS | 3 months ago
  1. 0

    gradle test fail when using slackNotifier in Jenkins Job DSL definition

    Stack Overflow | 3 months ago | CVVS
    javaposse.jobdsl.dsl.DslScriptException: (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1] Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)
  2. 0

    I have a [seed job definition|https://gist.github.com/cvvs/2451c9444e536b1c60fe9df7d1ea37b8] which is failing gradle test even though it seems to work fine when we use it in Jenkins. {code} //package master // GitURL def gitUrl = 'https://github.com/team/myapp' def slackRoom = null job('seed-dsl') { description('This seed is updated from the seed-dsl-updater job') properties { //Set github project URL githubProjectUrl(gitUrl) } ... // publishers is another name for post build steps publishers { mailer('', false, true) slackNotifier { room(slackRoom) notifyAborted(true) notifyFailure(true) notifyNotBuilt(true) 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) } } } {code} The gradle test command works fine when I comment out the with the slackNotifier declaration, but fail with the following error when it's enabled: {code:title=test fail excerpt} Caused by: javaposse.jobdsl.dsl.DslScriptException: (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1] Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure) at javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine(DslScriptLoader.groovy:135) at javaposse.jobdsl.dsl.DslScriptLoader.runScriptsWithClassLoader_closure1(DslScriptLoader.groovy:78) {code} [full output|https://gist.github.com/cvvs/dd63b0ea4266f19657081c6770ca3388] According to the [migration doc|https://github.com/jenkinsci/job-dsl-plugin/blob/master/docs/Migration.md#slack], slackNotifer has been supported since 1.47. In my [gradle.build|https://gist.github.com/cvvs/c5dfd8cc27a2a0b7f017bc21405c980e], I'm using 1.48. I see the same errors with plugin version 1.50 {code:title=gradle.build} ext { jobDslVersion = '1.48' ... } ... // Job DSL plugin including plugin dependencies testCompile "org.jenkins-ci.plugins:job-dsl:${jobDslVersion}" testCompile "org.jenkins-ci.plugins:job-dsl:${jobDslVersion}@jar" ... {code} The gradle.build also includes the following, as suggested by the [testing docs|https://github.com/jenkinsci/job-dsl-plugin/wiki/Testing-DSL-Scripts]. {code} testPlugins 'org.jenkins-ci.plugins:slack:2.0.1' {code} To reproduce: Download the seed job into the jobs directory, and run gradle test with the slackNotifier directive enabled. Comment out the slackNotifier directive and observe passing tests. Note: The job definition fails when ran on the DSL playground, as well.

    Jenkins JIRA | 3 months ago | C WS
    javaposse.jobdsl.dsl.DslScriptException: (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1] Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)
  3. 0

    [JIRA] [accurev-plugin] (JENKINS-22138) Add support for Accurev SCM

    Google Groups | 1 year ago | ma...@daniel-spilker.com (JIRA)
    javaposse.jobdsl.dsl.DslScriptException: (BuildPipeline.groovy, line 81) No signature of method: javaposse.jobdsl.dsl.helpers.ScmC ontext.accurevSCM() is applicable <span class="code-keyword" style="color: #000091">for</span> argument types: (template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure10) value s: [template.BuildPipeline$_createMultiJob_closure2$_closure8$_closure10@64df9a61]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javaposse.jobdsl.dsl.DslScriptException

      (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1] Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)

      at javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine()
    2. javaposse.jobdsl.dsl
      DslScriptLoader.runScriptsWithClassLoader_closure1
      1. javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine(DslScriptLoader.groovy:135)
      2. javaposse.jobdsl.dsl.DslScriptLoader.runScriptsWithClassLoader_closure1(DslScriptLoader.groovy:78)
      2 frames