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

job-dsl 1.72: "No signature of method: javaposse.jobdsl.dsl.jobs.WorkflowJob.steps() is applicable for argument types..."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Hi,

      The below script works fine on job-dsl-plugin 1.71:

      pipelineJob("restart_jenkins") {
        steps {
          systemGroovyScriptFile('import hudson.model.*; Hudson.instance.doSafeRestart(null);') {}
        }
      }
      

      But fails to create a job on 1.72 with error:

      ERROR: (script, line 4) No signature of method: javaposse.jobdsl.dsl.jobs.WorkflowJob.steps() is applicable for argument types: (script$_run_closure1$_closure3) values: [script$_run_closure1$_closure3@6b5277ea]
      

      Any ideas?

            daspilker Daniel Spilker
            brendanh Brendan Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: