Hi All,

Just wondering if anyone else has had the below issue.  I can see that is
it talking to TFS but it is just refuses to get the latest version of code
from the server into the Jenkins job workspace.

What am I doing wrong? Has anyone managed to get this working?

Also, as an aside: Is this plugin still being maintained?

Regards,

Andrew


---------- Forwarded message ----------
From: Andrew Gray <[email protected]>
Date: 27 September 2012 14:14
Subject: Question about TFS Plugin
To: [email protected]


Hi Eric,

I am using the TFS plugin for the first time.  May I ask some questions?


*Background*
I am automating the build and have written a series of DOS batch scripts to
make life easier.  This is currently necessary for a series of project
specific reasons (unfortunately). I am trying string these scripts together
in a Jenkins job.  The first step is to checkout the code to my Jenkins
workspace.

I already have one TFS workspace set up on my development machine that is
not pointing to my Jenkins workspace which I am using for general bug
fixing and development

If I just kick off the build I get the following console output
(credentials masked)

Started by user Andrew Gray
Building on master in workspace C:\JenkinsService\workspace\LocalCheckout
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" workspaces -format:brief
-server:http://ndevic-ids07v:8080/tfs ********
No workspace matching *;tfssetup on computer OVLM4600G3Z4CT1 found in
Team Foundation Server http://ndevic-ids07v:8080/tfs.
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" workspace -new
Hudson-LocalCheckout;nde\tfssetup -noprompt
-server:http://ndevic-ids07v:8080/tfs ********
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" workfold -map
$/TollTransitions/Source/Support . -workspace:Hudson-LocalCheckout
-server:http://ndevic-ids07v:8080/tfs ********
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" get . -recursive
-version:D2012-09-27T04:06:58Z -noprompt ********All files are up to
date.
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" history $/TollTransitions/Source/Support
-noprompt -version:D2012-09-27T03:35:00Z~D2012-09-27T04:06:59Z
-recursive -format:detailed -server:http://ndevic-ids07v:8080/tfs
********
No history entries were found for the item and version combination specified.
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" history . -recursive -stopafter:1 -noprompt
-version:WHudson-LocalCheckout;domain\username -format:brief ********
No history entries were found for the item and version combination specified.
Finished: SUCCESS


The plugin appears to be doing all the right things, but it is saying that "All
files are up to date", why is the plugin not checking out the files for
this brand new workspace (Hudson-LocalCheckout)?

If I first create a new workspace in Visual Studio mapping the project root
to the Jenkins workspace of a new job, I get the following console output
when I kick off a build (credentials masked):

Started by user Andrew Gray
Building on master in workspace C:\JenkinsService\workspace\LocalCheckout
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" workspaces -format:brief
-server:http://ndevic-ids07v:8080/tfs ********
No workspace matching *;tfssetup on computer OVLM4600G3Z4CT1 found in
Team Foundation Server http://ndevic-ids07v:8080/tfs.
[LocalCheckout] $ "C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\tf.exe" workspace -new
Hudson-LocalCheckout;nde\tfssetup -noprompt
-server:http://ndevic-ids07v:8080/tfs ********
The path C:\JenkinsService\workspace\LocalCheckout is already mapped
in workspace OVLM4600G3Z4CT1_1;domainYYY\andrewg
[http://ndevic-ids07v:8080/tfs/xxxxxxxx].
FATAL: Executable returned an unexpected result code [100]ERROR
<http://stacktrace.jenkins-ci.org/search?query=ERROR>: nullFinished
<http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE


Kind Regards,

Andrew

Reply via email to