Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: rundeck-plugin
    • Labels:
      None
    • Environment:
      Jenkins LTS 1.596.2, JDK 1.7.0_72, Windows 7, rundeck-plugin v3.3
      Rundeck 2.4.2, JDK 1.7.0_72, Windows 7
    • Similar Issues:

      Description

      In a Jenkins job triggering a job in Rundeck, I get a NPE:

      java.lang.NullPointerException
              at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:52)
              at org.rundeck.api.parser.ExecutionParser.parseXmlNode(ExecutionParser.java:30)
              at org.rundeck.api.ApiCall.execute(ApiCall.java:315)
              at org.rundeck.api.ApiCall.get(ApiCall.java:180)
              at org.rundeck.api.RundeckClient.triggerJob(RundeckClient.java:1066)
              at org.jenkinsci.plugins.rundeck.RundeckNotifier.notifyRundeck(RundeckNotifier.java:168)
              at org.jenkinsci.plugins.rundeck.RundeckNotifier.perform(RundeckNotifier.java:88)
              at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
              at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
              at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
              at hudson.model.Build$BuildExecution.post2(Build.java:183)
              at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
              at hudson.model.Run.execute(Run.java:1784)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
              at hudson.model.ResourceController.execute(ResourceController.java:89)
              at hudson.model.Executor.run(Executor.java:240)
      

      The job is successfully triggered though in Rundeck. The NPE occurs in Jenkins when trying to parse the answer.

      The config of the rundeck-plugin in Jenkins is the URL and the auth token. No API version specified (thus, default v9 is used).

        Attachments

          Activity

          Hide
          ahammar Anders Hammar added a comment -

          A quick test of upgrading the rundeck-client in the plugin to v12.0 (which Rundeck 2.4.2 uses) fixes this.

          Show
          ahammar Anders Hammar added a comment - A quick test of upgrading the rundeck-client in the plugin to v12.0 (which Rundeck 2.4.2 uses) fixes this.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anders Hammar
          Path:
          pom.xml
          src/main/webapp/help-globalConfig-apiversion.html
          http://jenkins-ci.org/commit/rundeck-plugin/1353081e2ed619b644fcfb559fe3849f8f536db2
          Log:
          [FIXED JENKINS-27971] Updated the Rundeck client to v12.0

          Signed-off-by: Anders Hammar <anders@hammar.net>

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anders Hammar Path: pom.xml src/main/webapp/help-globalConfig-apiversion.html http://jenkins-ci.org/commit/rundeck-plugin/1353081e2ed619b644fcfb559fe3849f8f536db2 Log: [FIXED JENKINS-27971] Updated the Rundeck client to v12.0 Signed-off-by: Anders Hammar <anders@hammar.net>
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Greg Schueler
          Path:
          pom.xml
          src/main/webapp/help-globalConfig-apiversion.html
          http://jenkins-ci.org/commit/rundeck-plugin/af6af985bb1ac30fcfa1d8dcb04d4faa1c57e7d3
          Log:
          Merge pull request #11 from andham/api-v12-upd

          [FIXED JENKINS-27971] Updated the Rundeck client to v12.0

          Compare: https://github.com/jenkinsci/rundeck-plugin/compare/24e68f388023...af6af985bb1a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Greg Schueler Path: pom.xml src/main/webapp/help-globalConfig-apiversion.html http://jenkins-ci.org/commit/rundeck-plugin/af6af985bb1ac30fcfa1d8dcb04d4faa1c57e7d3 Log: Merge pull request #11 from andham/api-v12-upd [FIXED JENKINS-27971] Updated the Rundeck client to v12.0 Compare: https://github.com/jenkinsci/rundeck-plugin/compare/24e68f388023...af6af985bb1a

            People

            • Assignee:
              vbehar Vincent Behar
              Reporter:
              ahammar Anders Hammar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: