I cant seem to get git polling to work. the first time it polls (ie when it clones the repository), it launches a build. for future polls, if there are no changes it reports nothing changed as expected. Yet if there is an existing clone in the workspace, and there are upstream changes. Then i get this exception:
Caused by: hudson.plugins.git.GitException: Command "git.exe -c core.askpass=true fetch --tags --progress ssh://git@xxxxx:9999/cpp.git +refs/heads/*:refs/remotes/origin/* --depth=1" returned status code 1:
stdout:
stderr: remote: Total 0 (delta 0), reused 0 (delta 0) [K
error: there are still refs under 'refs/remotes/origin/branch'
From ssh://xxxxxx:9999/cpp.git
! [new branch] branch -> origin/branch (unable to update local ref)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
The files are not locked in anyway i can detect. I am running jenkins 2.2 with newest versions of all plugins. I am trying to poll two branches in one repo. only polling a single branch doesn't work either.
Side problem, I still cannot get credentials to work with either ssh or https. I have to run jenkins as my windows user and depend on profile git settings. Git just hangs forever, which i assume means it is waiting for input for some question i cant answer.
Any ideas?
Thanks