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

Error while trying to update completion status in TFS/Team Services

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: tfs-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Jenkins 2

       

      ERROR: Error while trying to update pending status in TFS/Team Services
      java.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 org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:295)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      > git rev-parse --is-inside-work-tree # timeout=10
      Setting origin to ssh://tfs.seniorsolution.com.br:22/PD/Previdencia/_git/previdencia-core
      > git config remote.origin.url ssh://tfs.seniorsolution.com.br:22/PD/Previdencia/_git/previdencia-core # timeout=10
      Fetching origin...
      Fetching upstream changes from origin
      > git --version # timeout=10
      > git config --get remote.origin.url # timeout=10
      using GIT_SSH to set credentials
      > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/

      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url ssh://tfs.seniorsolution.com.br:22/PD/Previdencia/_git/previdencia-core # timeout=10
      Fetching without tags
      Fetching upstream changes from ssh://tfs.seniorsolution.com.br:22/PD/Previdencia/_git/previdencia-core
      > git --version # timeout=10
      using GIT_SSH to set credentials
      > git fetch --no-tags --progress ssh://tfs.seniorsolution.com.br:22/PD/Previdencia/_git/previdencia-core +refs/heads/:refs/remotes/origin/
      > git rev-parse null^{commit} # timeout=10[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: Error while trying to update completion status in TFS/Team Services
      java.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 org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:807)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1100(WorkflowRun.java:143)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1220)
      at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1437)
      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:417)
      at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35)
      at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to prev-jenkins-slave-01
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
      at hudson.remoting.Channel.call(Channel.java:955)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
      at com.sun.proxy.$Proxy96.revParse(Unknown Source)
      at org.jenkinsci.plugins.gitclient.RemoteGitImpl.revParse(RemoteGitImpl.java:558)
      at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
      at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
      at hudson.security.ACL.impersonate(ACL.java:290)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      hudson.plugins.git.GitException: Command "git rev-parse null^{commit}" returned status code 128:
      stdout: null^{commit}

      stderr: fatal: ambiguous argument 'null^{commit}': unknown revision or path not in the working tree.
      Use '--' to separate paths from revisions, like this:
      'git <command> [<revision>...][<file>...]'

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
      at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855)
      at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

        Attachments

          Issue Links

            Activity

            Hide
            fbaeuerle Florian Bäuerle added a comment -

            How do you trigger the build?

            Show
            fbaeuerle Florian Bäuerle added a comment - How do you trigger the build?
            Hide
            rafambbr Rafael Camargo added a comment -

            TFS send Service Hooks when "develop" change.

             

            My TFS configuration:

             

            I just change my original Jenkins base URL in this print.

            Show
            rafambbr Rafael Camargo added a comment - TFS send Service Hooks when "develop" change.   My TFS configuration:   I just change my original Jenkins base URL in this print.
            Hide
            fbaeuerle Florian Bäuerle added a comment -

            Thanks for the information. I think I've got a fix, please let's relocate further discussion to JENKINS-54569 as this issue here is most probably a duplicate.

            Show
            fbaeuerle Florian Bäuerle added a comment - Thanks for the information. I think I've got a fix, please let's relocate further discussion to JENKINS-54569 as this issue here is most probably a duplicate.

              People

              • Assignee:
                redsolo redsolo
                Reporter:
                rafambbr Rafael Camargo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: