-
Bug
-
Resolution: Not A Defect
-
Minor
-
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?
- relates to
-
JENKINS-31832 javaposse.jobdsl.dsl.Job is not a suitable parent class for javaposse.jobdsl.dsl.jobs.WorkflowJob (org.jenkinsci.plugins.workflow.job.WorkflowJob does not extend hudson.model.AbstractProject)
- Reopened