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

java.lang.NullPointerException when upding status in TFS/Team Services

    Details

    • Type: Bug
    • Status: In Review (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: tfs-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.138.3
      TFS plugin 5.142
    • Similar Issues:

      Description

      After updating the plugin to version 5.142 when updating the status with the TFS/Team Services following backtraces are given and the status is not updated

       

      ERROR: Error while trying to update pending status in TFS/Team ServicesERROR: Error while trying to update pending status in TFS/Team Servicesjava.lang.NullPointerException at hudson.plugins.tfs.util.TeamStatus.addStatus(TeamStatus.java:87) at hudson.plugins.tfs.util.TeamStatus.createFromRun(TeamStatus.java:66) at hudson.plugins.tfs.TeamPendingStatusBuildStep.perform(TeamPendingStatusBuildStep.java:44) at hudson.plugins.tfs.listeners.JenkinsRunListener.onStarted(JenkinsRunListener.java:35) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240) at hudson.model.Run.execute(Run.java:1815) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
      ERROR: Error while trying to update completion status in TFS/Team Servicesjava.lang.NullPointerException at hudson.plugins.tfs.util.TeamStatus.addStatus(TeamStatus.java:87) at hudson.plugins.tfs.util.TeamStatus.createFromRun(TeamStatus.java:66) at hudson.plugins.tfs.TeamCompletedStatusPostBuildAction.perform(TeamCompletedStatusPostBuildAction.java:47) at hudson.plugins.tfs.TeamCompletedStatusPostBuildAction.perform(TeamCompletedStatusPostBuildAction.java:41) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1844) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
      ERROR: Error while trying to update completion status in TFS/Team Servicesjava.lang.NullPointerException at hudson.plugins.tfs.util.TeamStatus.addStatus(TeamStatus.java:87) at hudson.plugins.tfs.util.TeamStatus.createFromRun(TeamStatus.java:66) at hudson.plugins.tfs.TeamCompletedStatusPostBuildAction.perform(TeamCompletedStatusPostBuildAction.java:47) at hudson.plugins.tfs.listeners.JenkinsRunListener.onCompleted(JenkinsRunListener.java:48) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211) at hudson.model.Run.execute(Run.java:1864) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)

       

      When rolling back the plugin to version 5.133 it works again

        Attachments

          Issue Links

            Activity

            bartvdrmeulen Bart van der Meulen created issue -
            fbaeuerle Florian Bäuerle made changes -
            Field Original Value New Value
            Link This issue is duplicated by JENKINS-54664 [ JENKINS-54664 ]
            fbaeuerle Florian Bäuerle made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            fbaeuerle Florian Bäuerle made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]

              People

              • Assignee:
                redsolo redsolo
                Reporter:
                bartvdrmeulen Bart van der Meulen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: