[JIRA] [tfs-plugin] (JENKINS-33280) TFS Plugin 4.0.0 returning null for remote changesets

53 views
Skip to first unread message

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 5:13:03 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani created an issue
 
Jenkins / Bug JENKINS-33280
TFS Plugin 4.0.0 returning null for remote changesets
Issue Type: Bug Bug
Assignee: redsolo
Components: tfs-plugin
Created: 02/Mar/16 10:12 PM
Environment: TFS-Plugin 4.0.0, Team Foundation Server 2013,
Priority: Major Major
Reporter: Mahitha Chalasani

TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from Mac OSX 10.11.3. Verified that TFS SDK is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX.

created by Team Build
Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'...
Query returned no result!
FATAL: null
java.lang.NullPointerException
at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205)
at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 5:18:01 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani updated an issue
Change By: Mahitha Chalasani
Environment: TFS-Plugin 4.0.0, Team Foundation Server 2013,    Jenkins 1.6.33, JRE 1.8, Mac OSX 10.11.3
TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from  Mac OSX 10  this machine . 11.3.  Verified that TFS SDK is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX. 



created by Team Build                                                                                     
Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'...
Query returned no result!
FATAL: null
java.lang.NullPointerException
at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205)
at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:02:02 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani updated an issue
Change By: Mahitha Chalasani
Environment: TFS-Plugin 4.0.0, Team Foundation Server 2013, Jenkins 1.6. 33 38 , JRE 1.8, Mac OSX 10.11.3

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:04:02 PM3/2/16
to jenkinsc...@googlegroups.com

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:07:01 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani started work on Bug JENKINS-33280
 
Change By: Mahitha Chalasani
Status: Open In Progress

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:07:01 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani stopped work on Bug JENKINS-33280
 
Change By: Mahitha Chalasani
Status: In Progress Open

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:11:02 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani updated an issue
TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from this machine. Verified that TFS SDK  for Java  is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX. 



created by Team Build                                                                                     
Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'...
Query returned no result!
FATAL: null
java.lang.NullPointerException
at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205)
at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

mahithachalasani@gmail.com (JIRA)

unread,
Mar 2, 2016, 6:12:02 PM3/2/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani updated an issue
TFS Plugin 4.0.0 gives and error while querying for the changeset. I get the same error for all projects built from this machine. Verified that TFS SDK for Java is installed with the plugin and also TEE CLC, though its marked as not required for the 4.0 version. The project is developed in XCode and stored in TFS using the git-tf plugin for Mac OSX. 


{code:java}

created by Team Build                                                                                     
Querying for remote changeset at '$/xxxxx/_git/xxxx' as of 'D2016-03-02T18:51:31Z'...
Query returned no result!
FATAL: null
java.lang.NullPointerException
at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:194)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:189)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:205)
at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:262)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:211)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

{code}

mahithachalasani@gmail.com (JIRA)

unread,
Mar 3, 2016, 11:45:01 AM3/3/16
to jenkinsc...@googlegroups.com

olivida@microsoft.com (JIRA)

unread,
Mar 3, 2016, 11:55:04 AM3/3/16
to jenkinsc...@googlegroups.com
Olivier Dagenais commented on Bug JENKINS-33280
 
Re: TFS Plugin 4.0.0 returning null for remote changesets

Are you pointing the TFS plugin at a Git repo or a TFVC repo?

Or did you mean that you interacted with a TFVC repo using Git through the git-tf tool?

If it's TFVC, can you confirm that the values look like the following?

Server URL `http://tfs.example.com:8080/tfs/collection`
Project Path `$/TeamProject/path/to/project`

...such that you could combine those values into a valid TFS code explorer URL, as follows:

http://tfs.example.com:8080/tfs/collection/_versionControl#path=%24%2FTeamProject%2Fpath%2Fto%2Fproject&_a=contents

...and that indeed shows you the contents of the folder you would expect Jenkins to check out?

Thanks!
- Oli

olivida@microsoft.com (JIRA)

unread,
Mar 3, 2016, 11:56:03 AM3/3/16
to jenkinsc...@googlegroups.com
Olivier Dagenais edited a comment on Bug JENKINS-33280
Are you pointing the TFS plugin at a Git repo or a TFVC repo?

Or did you mean that you interacted with a TFVC repo using Git through the git-tf tool?

If it's TFVC, can you confirm that the values look like the following?

| *Server URL* |  `  {{ http://tfs.example.com:8080/tfs/collection ` }}  |
| *Project Path* |
 `  {{ $/TeamProject/path/to/project ` }}  |


...such that you could combine those values into a valid TFS code explorer URL, as follows:

http://tfs.example.com:8080/tfs/collection/_versionControl#path=%24%2FTeamProject%2Fpath%2Fto%2Fproject&_a=contents

...and that indeed shows you the contents of the folder you would expect Jenkins to check out?

Thanks!
\- Oli

olivida@microsoft.com (JIRA)

unread,
Mar 3, 2016, 11:59:03 AM3/3/16
to jenkinsc...@googlegroups.com
Olivier Dagenais edited a comment on Bug JENKINS-33280
Are you pointing the TFS plugin at a Git repo or a TFVC repo?

Or did you mean that you interacted with a TFVC repo using Git through the git-tf tool?

If it's TFVC, can you confirm that the values look like the following?

| *Server URL* | {{http://tfs.example.com:8080/tfs/collection}} |
| *Project Path* | {{$/TeamProject/path/to/project}} |

...such that you could combine those values into a valid TFS code explorer URL, as follows:

http://tfs.example.com:8080/tfs/collection/_versionControl#path= %24%2FTeamProject%2Fpath%2Fto%2Fproject $/TeamProject/path/to/project &_a=contents


...and that indeed shows you the contents of the folder you would expect Jenkins to check out?

Thanks!
\- Oli

mahithachalasani@gmail.com (JIRA)

unread,
Mar 3, 2016, 1:50:01 PM3/3/16
to jenkinsc...@googlegroups.com

Thanks for getting back Oli!
The Jenkins TFS plug-in is pointing to a TFVC Repo.
And yes, the server URL and project path are in the given format. Can get to the project content folder by combining them both minus the '$'.

If the Project path is given without the '$', it spits out the below error, even though the workspace is created for the corresponding job. Any thoughts?

Querying for remote changeset at 'xxxxxx/_git/xxxx' as of 'D2016-03-03T18:35:23Z'...
FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /xxxxx/_git/xxxx.
java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /xxxxxx/_git/xxxx.
	at hudson.plugins.tfs.model.Server.execute(Server.java:157)
	at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:272)
	at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:268)
	at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:284)
	at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:311)
	at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:260)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:306)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: com.microsoft.tfs.core.clients.versioncontrol.exceptions.ItemNotMappedException: There is no working folder mapping for /xxxxx/_git/xxxx.
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getLocalWorkspace(VersionControlClient.java:737)
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.getWorkspace(VersionControlClient.java:2154)
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.determineWorkspaceNameAndOwner(VersionControlClient.java:6934)
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.determineWorkspaceNameAndOwner(VersionControlClient.java:6793)
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.determineWorkspaceNameAndOwner(VersionControlClient.java:6816)
	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.queryHistory(VersionControlClient.java:4622)
	at hudson.plugins.tfs.model.MockableVersionControlClient.queryHistory(MockableVersionControlClient.java:116)
	at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:65)
	at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:33)
	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
	at hudson.plugins.tfs.model.Server.execute(Server.java:153)
	... 13 more
Finished: FAILURE

Thanks!

mahithachalasani@gmail.com (JIRA)

unread,
Mar 3, 2016, 2:27:02 PM3/3/16
to jenkinsc...@googlegroups.com

Before throwing the above error, the build also lists all the workspaces on the owner computer

Listing workspaces from http://tfs2013.exeloncorp.com:8080/tfs/cercollection...
Workspace Owner Computer Comment  
---------------------------------------------------------------- ------------------------- --------------- ------------------------------------------------
Thousands of workspaces listed here. 

Can this be one of the causes for the fetch remote changeset on the current repository to fail?

mahithachalasani@gmail.com (JIRA)

unread,
Mar 3, 2016, 2:28:01 PM3/3/16
to jenkinsc...@googlegroups.com
Mahitha Chalasani edited a comment on Bug JENKINS-33280
Before throwing the above error, the build also lists all the workspaces on the owner computer 


{code:java}
Listing workspaces from http://
tfs2013.exeloncorp.com tfsxxxxxxx :8080/tfs/ cercollection collection ...

Workspace Owner Computer Comment  
---------------------------------------------------------------- ------------------------- --------------- ------------------------------------------------
Thousands of workspaces listed here. 
{code}


Can this be one of the causes for the fetch remote changeset on the current repository to fail? 

olivida@microsoft.com (JIRA)

unread,
Mar 3, 2016, 9:45:03 PM3/3/16
to jenkinsc...@googlegroups.com

The suffusion of workspaces in the listing is a defect I inadvertently introduced when I updated that code to use the TFS SDK. It's being tracked as JENKINS-30330.

olivier.dagenais@gmail.com (JIRA)

unread,
Feb 20, 2017, 3:46:19 PM2/20/17
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to David Staheli
 
Change By: Olivier Dagenais
Assignee: Olivier Dagenais David Staheli
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages