[Pharo-project] Git on CI
Hi, we have got a problem with Git on CI server that cause failing "Scripts download" job. Console output tells: Cannot run program "git" (in directory "/Users/hudson/jenkins/workspace/Scripts download"): error=2, No such file or directory I looked at the Jenkins configuration and it cannot find Git: There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin. Cheers, -- Pavel
On 23 March 2012 10:02, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
Hi,
we have got a problem with Git on CI server that cause failing "Scripts download" job. Console output tells:
Cannot run program "git" (in directory "/Users/hudson/jenkins/workspace/Scripts download"): error=2, No such file or directory
I looked at the Jenkins configuration and it cannot find Git: There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.
It is because some swiss guy changed the slaves, where this job can be run by stating "linux || mac" without checking if all slaves have git installed. :)
Cheers, -- Pavel
-- Best regards, Igor Stasenko.
Its strange, because this directory exists. i suspect it is again something with spaces in directory paths, that if you pass /Users/hudson/jenkins/workspace/Scripts download not properly quoted, it will take only /Users/hudson/jenkins/workspace/Scripts as command-line argument, which of course does not exists. And git is in default path on mac slave.. which git /usr/local/git/bin/git On 23 March 2012 10:25, Igor Stasenko <siguctua@gmail.com> wrote:
On 23 March 2012 10:02, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
Hi,
we have got a problem with Git on CI server that cause failing "Scripts download" job. Console output tells:
Cannot run program "git" (in directory "/Users/hudson/jenkins/workspace/Scripts download"): error=2, No such file or directory
I looked at the Jenkins configuration and it cannot find Git: There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.
It is because some swiss guy changed the slaves, where this job can be run by stating "linux || mac" without checking if all slaves have git installed. :)
Cheers, -- Pavel
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
On Fri, Mar 23, 2012 at 10:25 AM, Igor Stasenko <siguctua@gmail.com> wrote:
On 23 March 2012 10:02, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
Hi,
we have got a problem with Git on CI server that cause failing "Scripts download" job. Console output tells:
Cannot run program "git" (in directory "/Users/hudson/jenkins/workspace/Scripts download"): error=2, No such file or directory
I looked at the Jenkins configuration and it cannot find Git: There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.
It is because some swiss guy changed the slaves, where this job can be run by stating "linux || mac" without checking if all slaves have git installed. :)
I changed it to Linux slave only and it works... Then I tired to rename the project to Scripts-download and I got Command "git clone --progress -o origin git://gitorious.org/pharo-build/pharo-build.git /builds/jenkins/workspace/Scripts-download" returned status code 128: fatal: Could not get current working directory: No such file or directory So now it is enabled only on Linux with "Scripts download" name -- Pavel
Cheers, -- Pavel
-- Best regards, Igor Stasenko.
yes, but jenkins should take care creating a workspace directory for job on a slave where it runs. so what causing these errors is a bit of mystery On 23 March 2012 10:57, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
On Fri, Mar 23, 2012 at 10:25 AM, Igor Stasenko <siguctua@gmail.com> wrote:
On 23 March 2012 10:02, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
Hi,
we have got a problem with Git on CI server that cause failing "Scripts download" job. Console output tells:
Cannot run program "git" (in directory "/Users/hudson/jenkins/workspace/Scripts download"): error=2, No such file or directory
I looked at the Jenkins configuration and it cannot find Git: There's no such executable git in PATH: /sbin, /usr/sbin, /bin, /usr/bin.
It is because some swiss guy changed the slaves, where this job can be run by stating "linux || mac" without checking if all slaves have git installed. :)
I changed it to Linux slave only and it works... Then I tired to rename the project to Scripts-download and I got Command "git clone --progress -o origin git://gitorious.org/pharo-build/pharo-build.git /builds/jenkins/workspace/Scripts-download" returned status code 128: fatal: Could not get current working directory: No such file or directory
So now it is enabled only on Linux with "Scripts download" name
-- Pavel
Cheers, -- Pavel
-- Best regards, Igor Stasenko.
-- Best regards, Igor Stasenko.
participants (2)
-
Igor Stasenko -
Pavel Krivanek