Job DSL githubPullRequest: No signature of method with Jenkins 2.x

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Daniel Spilker
            Reporter:
            LawYard LawYard
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: