Hi Mark, the master has git installed. But it is git.exe, not git as on osx.

> the work around is to add the "Advanced clone behaviour" and "Require workspace for polling".
I did try that, but I get a different error. See below.

Is there a way to tell the Jenkins master to use the windows git instead of unix git for polling ? Because the job is configured with the unix git, since it is not possible to use git.exe in unix.

Polling SCM changes on MobileDaily
Using strategy: Default
[poll] Last Built Revision: Revision 4dd28ae36ea5534d2ad666e70edbcb22b412b3ff (refs/remotes/origin/develop)
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
> git config remote.origin.url g...@bitbucket.org:alexmx/en-ios-internship.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from g...@bitbucket.org:alexmx/en-ios-internship.git
> git --version # timeout=10
using GIT_SSH to set credentials MobileDaily GitHub key
> git fetch --tags --progress g...@bitbucket.org:alexmx/en-ios-internship.git +refs/heads/:refs/remotes/origin/
FATAL: hudson.plugins.git.GitException: Failed to fetch from g...@bitbucket.org:alexmx/en-ios-internship.git
hudson.util.IOException2: hudson.plugins.git.GitException: Failed to fetch from g...@bitbucket.org:alexmx/en-ios-internship.git
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:475)
at hudson.scm.SCM.poll(SCM.java:401)
at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1450)
at hudson.model.AbstractProject._poll(AbstractProject.java:1421)
at hudson.model.AbstractProject.poll(AbstractProject.java:1332)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: hudson.plugins.git.GitException: Failed to fetch from g...@bitbucket.org:alexmx/en-ios-internship.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:647)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:554)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:473)
... 13 more
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress g...@bitbucket.org:alexmx/en-ios-internship.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: /var/folders/xk/rth1rtgd6v96z_fvhq71vvvh0000gq/T/ssh4470835490524156079.sh: line 2: ssh: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1435)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1223)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:85)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:280)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:324)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
at ......remote call to MobileDaily(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
at hudson.remoting.Channel.call(Channel.java:752)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
at com.sun.proxy.$Proxy56.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:645)
... 15 more
Done. Took 0.48 sec
No changes

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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to