[JIRA] (JENKINS-54664) Error while trying to update completion status in TFS/Team Services

37 views
Skip to first unread message

rafael.camargo.sp@gmail.com (JIRA)

unread,
Nov 15, 2018, 6:56:02 PM11/15/18
to jenkinsc...@googlegroups.com
Rafael Camargo created an issue
 
Jenkins / Task JENKINS-54664
Error while trying to update completion status in TFS/Team Services
Issue Type: Task Task
Assignee: redsolo
Components: tfs-plugin
Created: 2018-11-15 23:55
Priority: Minor Minor
Reporter: Rafael Camargo

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rafael.camargo.sp@gmail.com (JIRA)

unread,
Nov 15, 2018, 6:58:02 PM11/15/18
to jenkinsc...@googlegroups.com
Rafael Camargo updated an issue
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 <command> [<revision>...] -- [<file>...]'

florian.bae@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:44:02 AM11/27/18
to jenkinsc...@googlegroups.com

florian.bae@gmail.com (JIRA)

unread,
Nov 27, 2018, 7:53:02 AM11/27/18
to jenkinsc...@googlegroups.com
Florian Bäuerle resolved as Duplicate
 
Change By: Florian Bäuerle
Status: Open Resolved
Resolution: Duplicate

rafael.camargo.sp@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:16:02 PM11/27/18
to jenkinsc...@googlegroups.com
Rafael Camargo updated an issue
Change By: Rafael Camargo
Attachment: image-2018-11-27-18-15-38-029.png

rafael.camargo.sp@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:18:01 PM11/27/18
to jenkinsc...@googlegroups.com
Rafael Camargo updated an issue
Change By: Rafael Camargo
Attachment: image-2018-11-27-18-17-30-267.png

rafael.camargo.sp@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:19:02 PM11/27/18
to jenkinsc...@googlegroups.com
Rafael Camargo commented on Task JENKINS-54664
 
Re: Error while trying to update completion status in TFS/Team Services

TFS send Service Hooks when "develop" change.

 

My TFS configuration:

 

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

florian.bae@gmail.com (JIRA)

unread,
Nov 29, 2018, 7:17:02 AM11/29/18
to jenkinsc...@googlegroups.com

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.

Reply all
Reply to author
Forward
0 new messages