Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41574

GHPRB doesn't update PR with build status correctly

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • ghprb-plugin
    • None
    • Jenkins v2.42
      Ubuntu 13.10

    Description

      When the build starts it updates the PR to say the build is pending, but doesn't include a link to the Jenkins job page.

      When the build finishes, it fails to update the PR and the following message is in /var/log/jenkins/jenkins.log

      INFO: Pull request #100 was updated on myorg/myrepo at 1/30/17 2:20 PM by User:ErikDahlinghaus
      Jan 30, 2017 2:23:09 PM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.NumberFormatException: null
              at java.lang.Integer.parseInt(Integer.java:454)
              at java.lang.Integer.parseInt(Integer.java:527)
              at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:189)
              at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:149)
              at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:128)
              at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:24)
              at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:17)
              at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240)
              at hudson.model.Run.execute(Run.java:1725)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
              at hudson.model.ResourceController.execute(ResourceController.java:98)
              at hudson.model.Executor.run(Executor.java:404)
      

      I've tested all of the actions of GHPRB from the Configure System menu and everything works as expected. I am able to update the status of any PR my Jenkins account has access to.

      This stopped working about 1-2 weeks ago, with no changes to our environment.

      Attachments

        Activity

          erikdahlinghaus Erik Dahlinghaus created issue -
          erikdahlinghaus Erik Dahlinghaus made changes -
          Field Original Value New Value
          Description When the build starts it updates the PR to say the build is pending, but doesn't include a link to the Jenkins job page.

          When the build finishes, it fails to update the PR and the following message is in /var/log/jenkins/jenkins.log

          {code}
          INFO: Pull request #100 was updated on myorg/myrepo at 1/30/17 2:20 PM by User:ErikDahlinghaus
          Jan 30, 2017 2:23:09 PM hudson.model.listeners.RunListener report
          WARNING: RunListener failed
          java.lang.NumberFormatException: null
                  at java.lang.Integer.parseInt(Integer.java:454)
                  at java.lang.Integer.parseInt(Integer.java:527)
                  at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:189)
                  at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:149)
                  at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:128)
                  at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:24)
                  at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:17)
                  at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240)
                  at hudson.model.Run.execute(Run.java:1725)
                  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
                  at hudson.model.ResourceController.execute(ResourceController.java:98)
                  at hudson.model.Executor.run(Executor.java:404)
          {code}

          I've tested all of the actions of GHPRB from the Configure System menu and everything works as expected. I am able to update the status of any PR my Jenkins account has access to.
          When the build starts it updates the PR to say the build is pending, but doesn't include a link to the Jenkins job page.

          When the build finishes, it fails to update the PR and the following message is in /var/log/jenkins/jenkins.log

          {code}
          INFO: Pull request #100 was updated on myorg/myrepo at 1/30/17 2:20 PM by User:ErikDahlinghaus
          Jan 30, 2017 2:23:09 PM hudson.model.listeners.RunListener report
          WARNING: RunListener failed
          java.lang.NumberFormatException: null
                  at java.lang.Integer.parseInt(Integer.java:454)
                  at java.lang.Integer.parseInt(Integer.java:527)
                  at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:189)
                  at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:149)
                  at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:128)
                  at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:24)
                  at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:17)
                  at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240)
                  at hudson.model.Run.execute(Run.java:1725)
                  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
                  at hudson.model.ResourceController.execute(ResourceController.java:98)
                  at hudson.model.Executor.run(Executor.java:404)
          {code}

          I've tested all of the actions of GHPRB from the Configure System menu and everything works as expected. I am able to update the status of any PR my Jenkins account has access to.

          This stopped working about 1-2 weeks ago, with no changes to our environment.

          People

            bpatterson ben patterson
            erikdahlinghaus Erik Dahlinghaus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: