Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59278

No signature of method: javaposse.jobdsl.dsl.jobs.WorkflowJob.wrappers()

    Details

    • Similar Issues:

      Description

      After upgrade job-dsl-plugin from 1.71 to 1.76 having the below issue . And there are no workaround suggested for Migration 1.70.

      https://github.com/jenkinsci/job-dsl-plugin/wiki/Migration#migrating-to-170

       

      No signature of method: javaposse.jobdsl.dsl.jobs.WorkflowJob.wrappers() is applicable for argument types: (custom_hook$_run_closure1$_closure4) values: [custom_hook$_run_closure1$_closure4@56fe6ac8] Possible solutions: triggers(groovy.lang.Closure)

      As we still use pipelinejob we need to have this features or let us know alternatives.

       

       

       

       

        Attachments

          Activity

          kusumat kusuma t created issue -
          Hide
          tomasnorre Tomas Norre Mikkelsen added a comment - - edited

          I have experience the "same" problem with: promoted-builds and mattermost plugins, or at least it looks the same to me.

          Jenkins: 2.235.1
          Gradle: 6.5
          JobDSL 1.77
          Promoted-build: 3.5
          Mattermost: 3.1.0

           

           

          No signature of method: javaposse.jobdsl.dsl.helpers.properties.PropertiesContext.promotions() is applicable for argument types: (webshop_v8.script$_run_closure1$_closure7$_closure20) values: [webshop_v8.script$_run_closure1$_closure7$_closure20@266fe2cc]
          
          No signature of method: javaposse.jobdsl.dsl.helpers.BuildParametersContext.promotedBuildParameterDefinition() is applicable for argument types: (webshop_v8.script$_run_closure1$_closure4$_closure8) values: [webshop_v8.script$_run_closure1$_closure4$_closure8@7e33bfb2]
          
          No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.mattermostNotifier() is applicable for argument types: (monitoring.script$_run_closure1$_closure6$_closure8) values: [monitoring.script$_run_closure1$_closure6$_closure8@474e16f0] 
          

           

          Even the example from the promoted-builds documentation isn't working.
          https://plugins.jenkins.io/promoted-builds/

          Show
          tomasnorre Tomas Norre Mikkelsen added a comment - - edited I have experience the "same" problem with: promoted-builds and mattermost plugins, or at least it looks the same to me. Jenkins: 2.235.1 Gradle: 6.5 JobDSL 1.77 Promoted-build: 3.5 Mattermost: 3.1.0     No signature of method: javaposse.jobdsl.dsl.helpers.properties.PropertiesContext.promotions() is applicable for argument types: (webshop_v8.script$_run_closure1$_closure7$_closure20) values: [webshop_v8.script$_run_closure1$_closure7$_closure20@266fe2cc] No signature of method: javaposse.jobdsl.dsl.helpers.BuildParametersContext.promotedBuildParameterDefinition() is applicable for argument types: (webshop_v8.script$_run_closure1$_closure4$_closure8) values: [webshop_v8.script$_run_closure1$_closure4$_closure8@7e33bfb2] No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.mattermostNotifier() is applicable for argument types: (monitoring.script$_run_closure1$_closure6$_closure8) values: [monitoring.script$_run_closure1$_closure6$_closure8@474e16f0]   Even the example from the promoted-builds documentation isn't working. https://plugins.jenkins.io/promoted-builds/
          Hide
          tomasnorre Tomas Norre Mikkelsen added a comment -

           The problem was in my case:
          We are using the Job DSL Plugin(1) that provides tests for us, to execute them locally before pushing the commit.

          This plugin was still using an old version of Jenkins, by adding a newer version to my build.gradle my problem was solved.

          dependencies {
              . 
              . 
              . 
              jobDslTestRuntime "org.jenkins-ci.main:jenkins-war:2.235.1" 
          } 

          {{}} # https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin

          Show
          tomasnorre Tomas Norre Mikkelsen added a comment -  The problem was in my case: We are using the Job DSL Plugin(1) that provides tests for us, to execute them locally before pushing the commit. This plugin was still using an old version of Jenkins, by adding a newer version to my build.gradle my problem was solved. dependencies { . . . jobDslTestRuntime "org.jenkins-ci.main:jenkins-war:2.235.1" } {{}} # https://github.com/AOEpeople/gradle-jenkins-job-dsl-plugin
          Hide
          daspilker Daniel Spilker added a comment -

          The Pipeline job type never had support for wrappers, Job DSL syntax was misleading. See JENKINS-31832.

          Show
          daspilker Daniel Spilker added a comment - The Pipeline job type never had support for wrappers, Job DSL syntax was misleading. See JENKINS-31832 .
          daspilker Daniel Spilker made changes -
          Field Original Value New Value
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          Resolution Not A Defect [ 7 ]

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              kusumat kusuma t
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: