Git polling does not work

61 views
Skip to first unread message

Sidoine De Wispelaere

unread,
Aug 8, 2014, 6:06:11 AM8/8/14
to jenkins...@googlegroups.com
Hello,

I try to setup Jenkins for our project. We use a Git repository hosted by a TFS server (which only supports HTTP). Everything run on Windows. Only one branch is monitored (test_branch in the example bellow).
When I manually start a build, it works nicely, but the Git polling does not work, it never trigger a new build.
The logs are:

Started on 8 août 2014 09:45:02
Using strategy: Default
[poll] Last Built Revision: Revision 0a9d8...cdaa (origin/test_branch)
using .gitcredentials to set credentials
 > git.exe --version # timeout=10
 > git.exe init C:\Windows\TEMP\hudson2469859539008880301tmp # timeout=10
 > git.exe config --local credential.helper store --file=\"C:\Windows\TEMP\git3912178865903475115.credentials\" # timeout=10
 > git.exe ls-remote -h http://tfs.xxx.com:8080/tfs/xxx/xxx/_git/Xxxx test_branch # timeout=10

Where could I find more details about why it fails to start a new build?

I tried Jgit but it returned an exception:
hudson.plugins.git.GitException: org.eclipse.jgit.errors.TransportException authentication not supported

Mark Waite

unread,
Aug 8, 2014, 7:42:29 AM8/8/14
to jenkins...@googlegroups.com

If the Jenkins build works without polling, then you could try adding the additional behaviour "Polling requires a workspace".  That uses the slave which contains the workspace to pill instead of using git ls-remote on the master.

Mark Waite

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

Sidoine De Wispelaere

unread,
Aug 8, 2014, 8:56:08 AM8/8/14
to jenkins...@googlegroups.com
I tried it and it solves the problem, thank you.




--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/dgpZKtt7k-8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages