Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Not A Defect
-
Component/s: git-plugin
-
Labels:
-
Environment:Jenkins ver. 1.580.1
Latest git-plugin
-
Similar Issues:
Description
The job is configured to use the git command for unix.
Git authentication is key based.
When manually triggering the job, it works.
Git Polling does not work.
The Jenkins master is a windows machine, the slave is OS X 10.9
Started on Nov 11, 2014 7:26:49 PM
Using strategy: Default
[poll] Last Built Revision: Revision 4dd28ae36ea5534d2ad666e70edbcb22b412b3ff (refs/remotes/origin/develop)
using GIT_SSH to set credentials MobileDaily GitHub key
> git ls-remote -h git@bitbucket.org:alexmx/en-ios-internship.git develop # timeout=10
FATAL: hudson.plugins.git.GitException: Error performing command: git ls-remote -h git@bitbucket.org:alexmx/en-ios-internship.git develop
hudson.util.IOException2: hudson.plugins.git.GitException: Error performing command: git ls-remote -h git@bitbucket.org:alexmx/en-ios-internship.git develop
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:475)
at hudson.scm.SCM.poll(SCM.java:401)
at hudson.model.AbstractProject._poll(AbstractProject.java:1429)
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: Error performing command: git ls-remote -h git@bitbucket.org:alexmx/en-ios-internship.git develop
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1223)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1136)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1127)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2057)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:509)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:473)
... 12 more
Caused by: java.io.IOException: Cannot run program "git": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:803)
at hudson.Launcher$ProcStarter.start(Launcher.java:381)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1431)
... 18 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 24 more
Done. Took 22 ms
No changes
It is unlikely to be attempting to use the ssh from the Windows master. That would require changes to the git compiled executable on your mac. The "ssh: command not found" is a message from command line git. Command line git is invoked by the Jenkins git plugin, then command line git decides (within the compiled git program) that it needs to invoke the ssh command.
My guess is that the PATH environment variable on the machine hosting the workspace (the mac) is wrong. It does not have ssh in the path.