Java API for Team Foundation Server

88 views
Skip to first unread message

Andy Falanga

unread,
Jan 7, 2016, 12:01:54 PM1/7/16
to Jenkins Users
Does anyone know the source (not the code but who produces) for the Java API used by the Jenkins Team Foundation Server plugin?  I'm having some strange errors and I don't get why the TFS server is producing these things.  The build process deletes the workspace, and given the name it's deleting what TFS calls a workspace and not the Jenkins workspace, it then remakes the workspace and attempts to do a mapping.  However, I get this:

Deleting workspaces named 'Hudson-LinuxBuildCompileOnly-devlnx64-03' from computer 'devlnx64-03'...
Deleted 1 workspace(s) named 'Hudson-LinuxBuildCompileOnly-devlnx64-03'.
Creating workspace 'Hudson-LinuxBuildCompileOnly-devlnx64-03' owned by 'WINNTDOM\umtfsservice'...
Created workspace 'Hudson-LinuxBuildCompileOnly-devlnx64-03'.
Mapping '$/Project/Main' to local folder '/home/ssdrive/jenkins/workspace/LinuxBuildCompileOnly' in workspace 'Hudson-LinuxBuildCompileOnly-devlnx64-03'...
FATAL: com.microsoft.tfs.core.clients.versioncontrol.exceptions.MappingConflictException: The path /home/builder/jenkins/workspace/LinuxBuildCompileOnly is already mapped in workspace Hudson-LinuxBuildCompileOnly-devlnx64-04.

As you can see, the build attempts to map the source control location to a local folder and then encounters the fatal error.  The strange thing is that the workspace in which it says that it's already mapped, isn't on this system.  Furthermore, what does it matter?  I've used TFS for the last 4 years and I've mapped the same location in TFS in multiple workspaces many times.  What's up with this?

Dirk Heinrichs

unread,
Jan 8, 2016, 1:58:25 AM1/8/16
to jenkins...@googlegroups.com
Hi,

please don't hijack other peoples threads, it's considered bad habit.

Thanks a lot...

    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com

Christopher Orr

unread,
Jan 8, 2016, 7:01:58 PM1/8/16
to jenkins...@googlegroups.com
On 07/01/16 18:01, Andy Falanga wrote:
> Does anyone know the source (not the code but who produces) for the Java
> API used by the Jenkins Team Foundation Server plugin?

The plugin bundles a com.microsoft.tfs.sdk JAR file:
https://github.com/jenkinsci/tfs-plugin/blob/0364972/pom.xml#L219-L225

This appears to come from Microsoft's TFS SDK for Java.

Regards,
Chris

Christopher Orr

unread,
Jan 8, 2016, 7:03:09 PM1/8/16
to jenkins...@googlegroups.com
On 08/01/16 07:58, Dirk Heinrichs wrote:
> please don't hijack other peoples threads, it's considered bad habit.

False accusations are bad as well ;)

The parent didn't hijack any threads, as you can see from a regular
email client, the Google Groups web page for the thread, or from the
headers of the email.
Reply all
Reply to author
Forward
0 new messages