[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-09-12 Thread christop...@java.net (JIRA)














































christopheM
 commented on  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)















I had exactly the same issue for months. Since Jan 2013 we were using a OSX restricted job with a windows master; the polling never worked and we had to launch the build manually. The workaround works fine for us too



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-08 Thread mark.earl.wa...@gmail.com (JIRA)















































Mark Waite
 closed  JENKINS-24125 as Not A Defect


Git Polling fails for job restricted to Mac OS X slave (with Windows master)
















The git plugin defaults to use "fast remote polling" to reduce the disc and I/O overhead of polling for updates.  That fast remote polling is performed on the master.

If you would rather not use fast remote polling, you can add "Additional Behaviours" to "Force polling using workspace".  That will then require a workspace before performing a poll, and will heed the platform restrictions of the job definition.  

That restriction will cause polling to be significantly slower in certain cases, but it will assure the job restriction is honored by the polling process.





Change By:


Mark Waite
(08/Aug/14 10:49 PM)




Status:


Resolved
Closed



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-08 Thread cdouce...@everyscape.com (JIRA)














































Charles Doucette
 commented on  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)















So is it expected that all git installations will work on all platforms, even if the job can only be built on certain platforms? I didn't think so - so I assumed that the polling etc. would occur only on the appropriate node(s). If that is the case, then it seems as if the only appropriate path to the git executable would be "git" as you suggested (assuming the git executable will be found in the path and that the ".exe" suffix for windows is implicit/not-necessary).

For some reason, the PATH variable defined on the OS/X slave for the user running Jenkins didn't seem to be used - thus "git" was not found and therefore we defined an alternate (platform specific) installation of git for Mac with an explicit directory instead of overriding the default installation just for the slave (which I didn't know I could/should do).



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-08 Thread mark.earl.wa...@gmail.com (JIRA)














































Mark Waite
 commented on  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)















The master Jenkins git location is the default and is applied to the master and all slaves (as the default).  That usually leads to me preferring to have the default be "git", and then if I'm running a Windows master, I assure that the Jenkins process includes the C:\Program Files(x86)\Git\bin directory in its path.

In your case, I suspect your default is "git.exe", and when that is attempted as the default on OS/X, there is no "git.exe".  Thus, if you want the system wide default for the git program to be "git.exe" (possibly because most of your machines will be Windows based), then you'll need to define the git location for each slave that is not Windows.

You need to override tool locations if the default tool location does not work for that slave.  You defined the default as "git.exe" and that only work for Windows.



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-08 Thread cdouce...@everyscape.com (JIRA)














































Charles Doucette
 commented on  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)















I can confirm that the name and paths of the git executables are correctly specified for the various platforms on the Git installations section of the Jenkins configuration page.

Apparently I could override those tool locations on the OS/X slave node configuration page (I was not aware of this) - but why do I need to do that?

Please explain to me how I can specify the proper git executable to use for both polling and building if they each use the same git executable specified by the job but polling runs on the master node but the job is built on the specified slave node?

Thanks,
Chuck



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-07 Thread mark.earl.wa...@gmail.com (JIRA)












































  
Mark Waite
 edited a comment on  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)
















I strongly suspect that you have a configuration problem.  The "ls-remote" command is executed on the master node, though it likely uses the git executable defined by that job.

Please confirm that your master node has the git executable correctly specified for the master node (git.exe), and that the OS/X node has the git executable correctly specified for it (/usr/local/bin/git).

The location of the default git executable is set in the node configuration page for the OS/X slave node.  It needs to be "/usr/local/bin/git".

The location of the default git executable for the master node needs to be configured in the "Git installations" section of the "Manage Jenkins" page.



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-07 Thread mark.earl.wa...@gmail.com (JIRA)















































Mark Waite
 resolved  JENKINS-24125 as Not A Defect


Git Polling fails for job restricted to Mac OS X slave (with Windows master)
















I strongly suspect that you have a configuration problem.  The "ls-remote" command is executed on the master node, though it likely uses the git executable defined by that job.

Please confirm that your master node has the git executable correctly specified for the master node (git.exe), and that the OS/X node has the git executable correctly specified for it (/usr/local/bin/git).





Change By:


Mark Waite
(08/Aug/14 4:12 AM)




Status:


Open
Resolved





Resolution:


Not A Defect



























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.


[JIRA] [git] (JENKINS-24125) Git Polling fails for job restricted to Mac OS X slave (with Windows master)

2014-08-05 Thread cdouce...@everyscape.com (JIRA)














































Charles Doucette
 created  JENKINS-24125


Git Polling fails for job restricted to Mac OS X slave (with Windows master)















Issue Type:


Bug



Affects Versions:


current



Assignee:


Nicolas De Loof



Attachments:


GitPollingLog.txt, Mobile-iOS-develop-config.xml



Components:


git



Created:


05/Aug/14 10:59 PM



Description:


I have defined two installations of git on our Windows master node:
Default: git.exe (found in the PATH)
Mac: /usr/local/bin/git (not found in the PATH)

I have certain jobs that must run on a Mac. For those jobs, I have selected "Mac" for the git executable.

When those jobs try to poll github for changes, they get errors like this:
Started on Aug 5, 2014 6:38:03 PM
Using strategy: Default
[poll] Last Built Revision: Revision 33ce43e454fd2447f548f18dc3bc404ff1a2b021 (origin/release)
 > /usr/local/bin/git ls-remote -h g...@github.com:everyscape/Mobile.git release # timeout=10
FATAL: hudson.plugins.git.GitException: Error performing command: /usr/local/bin/git ls-remote -h g...@github.com:everyscape/Mobile.git release
hudson.util.IOException2: hudson.plugins.git.GitException: Error performing command: /usr/local/bin/git ls-remote -h g...@github.com:everyscape/Mobile.git release
	at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:459)
	at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:357)
	at hudson.scm.SCM.poll(SCM.java:374)
...
Caused by: hudson.plugins.git.GitException: Error performing command: /usr/local/bin/git ls-remote -h g...@github.com:everyscape/Mobile.git release
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1414)
...
Caused by: java.io.IOException: Cannot run program "/usr/local/bin/git": CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessBuilder.start(Unknown Source)
...
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessImpl.create(Native Method)
...

I presume this fails because it is looking for /usr/local/bin/git on the Windows master node.
When I manually build the job with that configuration - git works fine.
If I switch the job's configuration to use the "Default" git executable (git.exe), then polling works fine, but when the job tries to run on the Mac then the git commands fail (since git.exe is not found on the Mac).

So, until this issue is resolved somehow, either
a) no jobs are started automatically, but they all build successfully when launched manually, or
b) jobs are started automatically - but then they all fail to build.

The job in question clones a specific branch of a repository from github.
It is restricted to work on a slave node with the label of "iOS".
There is a mac slave node with that label.
We are running the latest LTS version (1.565.1) of Jenkins on a Windows server.

FYI - this behavior worked fine on an older (1.x) version of this plugin.

Thanks,
Chuck




Environment:


Windows master, Mac slave




Project:


Jenkins



Priority:


Major



Reporter:


Charles Doucette

























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 re