-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Jenkins 2.19.1
Job DSL Plugin 1.51
GHPRB 1.33.2
Ubuntu 14.04
Continue of JENKINS-37647.
I checkout DSL test repo from job-dsl-gradle-example and run tests successfully on my Ubuntu with Jenkins.
But when I changed Jenkins version to 2.19.1 tests fails with error:
Caused by:
10:57:43.638 [DEBUG] [TestEventLogger] javaposse.jobdsl.dsl.DslScriptException: (script, line 72) No signature of method: javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.githubPullRequest() is applicable for argument types: (script$_run_closure2$_closure8$_closure9) values: [script$_run_closure2$_closure8$_closure9@4c560437]
Changing back Jenkins version solved this issue.
Then I try to use
./gradlew rest
to create job without tests - fails again with the same error.
Interesting note: tests runs successfully on my macOS with any Jenkins version. I found same issue: job-dsl-gradle-example/issues/64