This change was not in the changelog for 2.0 which I read before trying to upgrade.

Would it be possible to document this in the page plugin? I think it might help people understand how the plugin works. In particular this piece of information helped me understand what happened when I upgraded.


On 11/04/2013 09:29 PM, nicolas de loof wrote:
no, polling occurs on last available workspace, that may be a slave.

git-plugin 2.0 is using remote polling "ls-remote" by default, you force
the legacy mode setting "Force polling using workspace" option
BUT a simpler option is for you to install git on master !


2013/11/4 Kevin Fleming (BLOOMBERG/ 731 LEXIN) <kpflem...@bloomberg.net>

Polling has always run on the master IIRC, otherwise it wouldn't be
possible for the master to know when to fire up a slave to run a job.


----- Original Message -----
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: Nov 4 2013 14:54:17

Hello,

I just upgraded several of my plugins including git (2.0), ssh-credentials
(1.5.1), scm-api (0.2), and git-client (1.4.6).  I'm on Jenkins 1.509.3
Now, polling fails as shown below:

FATAL: Error performing command: ls-remote -h 
ssh://m...@myserver.corp.mycompany.com:29418/Bryce.git fs01hudson.util.IOException2 
<http://stacktrace.jenkins-ci.org/search?query=hudson.util.IOException2>: Error 
performing command: ls-remote -h 
ssh://m...@myserver.corp.mycompany.com:29418/MyRepo.git fs01
         at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:458) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.compareRemoteRevisionWith&entity=method>
         at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM._compareRemoteRevisionWith&entity=method>
         at hudson.scm.SCM.poll(SCM.java:373) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.poll&entity=method>
         at hudson.model.AbstractProject._poll(AbstractProject.java:1521) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject._poll&entity=method>
         at hudson.model.AbstractProject.poll(AbstractProject.java:1446) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.poll&entity=method>
         at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.triggers.SCMTrigger$Runner.runPolling&entity=method>
         at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.triggers.SCMTrigger$Runner.run&entity=method>
         at 
hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.util.SequentialExecutionQueue$QueueEntry.run&entity=method>
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.Executors$RunnableAdapter.call&entity=method>
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerRun&entity=method>
         at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run&entity=method>
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker&entity=method>
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run&entity=method>
         at java.lang.Thread.run(Thread.java:679) 
<http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&entity=method>
Caused by: hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Error performing command: ls-remote -h 
ssh://m...@myserver.corp.mycompany.com:29418/Bryce.git fs01
         at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:988) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method>
         at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:920)
 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials&entity=method>
         at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:1297) 
<http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev&entity=method>
         at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:488) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl&entity=method>
         at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:456) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.compareRemoteRevisionWith&entity=method>
         ... 13 more
Caused by: java.io.IOException <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: 
*Cannot run program ""\Program Files (x86)\Git\bin\git.exe"": java.io.IOException: 
error=2, No such file or directory*


I suspect that the polling mechanism is now attempting to run on the
server--whereas, before, it ran on the slave.
The Git commands are going to fail if they run on the server, because it
doesn't have Git installed.

Does anyone have an idea of how I can get past this problem?

Thank you.

Steve K.
--
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-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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



--
  Ricardo

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

Reply via email to