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

Details

    Description

      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?

      Attachments

        Issue Links

          Activity

            daspilker Daniel Spilker added a comment - See https://github.com/jenkinsci/job-dsl-plugin/wiki/Migration#migrating-to-170

            People

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

              Dates

                Created:
                Updated:
                Resolved: