Jeremie Bresson edited a comment on Bug JENKINS-22046

I have exactly the same error.

> Even though Jenkins successfully retrieves the source code, it then fails with an exception, claiming access is denied.

In my opinion, this is because the five TF.exe operations are ok:

tf workspaces ...
tf workspace ...
tf workspace ...
tf workfold -map ...
tf get . ...

In my case the "get" command does the whole checkout and seems to be OK. I can reproduce it in the windows terminal (cmd.exe). It works.

The file list you truncated in your example seems to be complete (In my case the same as the one I get when I start the command from the terminal).

I assume the Jenkins TFS plugin does something after that, but it is not telling what. So it is hard to debug.

Update: I had a look at the stacktrace and the source code.

The error occures during "get detailed history":

Stacktrace:
at hudson.plugins.tfs.model.Project.getVCCHistory(Project.java:84)
at hudson.plugins.tfs.model.Project.getDetailedHistory(Project.java:128)

https://github.com/jenkinsci/tfs-plugin/blob/tfs-3.1.1/src/main/java/hudson/plugins/tfs/model/Project.java#L84
https://github.com/jenkinsci/tfs-plugin/blob/tfs-3.1.1/src/main/java/hudson/plugins/tfs/model/Project.java#L128

Now the next question is: why do I get a TFSUnauthorizedException? This might be because I try to use default credentials (see link to msdn forum).

Are you using default credentials too?

I will try to see if "com.microsoft.tfs.jni.native.base-directory" is correctly set.

See also:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to