Status: Closed (View Workflow)
Resolution: Not A Defect
Job DSL Plugin 1.51
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
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
Ah, sorry. I tested this on Windows. I can reproduce this when running on Ubunto 14.04 (in a ubuntu:14.04 docker container).
This PR fixes the problem: https://github.com/sheehan/job-dsl-gradle-example/pull/70
I'm closing this since it's a job-dsl-gradle-example problem and not a Job DSL or GHBRB plugin bug. This is tracked as #63 and #64 in the job-dsl-gradle-example repo.
I can't reproduce this. Here is the code where I updated Jenkins to 2.19.1 and GHPRB to 1.33.2: https://github.com/daspilker/job-dsl-gradle-example/tree/JENKINS-40181
./gradlew clean build runs successfully.