Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Git on slaves #4

Open
mrdavidlaing opened this issue Aug 15, 2014 · 2 comments
Open

Cannot use Git on slaves #4

mrdavidlaing opened this issue Aug 15, 2014 · 2 comments

Comments

@mrdavidlaing
Copy link
Member

git is packaged and installed on the master node as a dependancy of the jenkins_master job

This is not the case for the slave nodes, so attempting to use git on a slave fails with:

Cannot run program "git" 

The question is, who is responsible for installing git on the slaves? BOSH (as above), or Jenkins?
image

@mrdavidlaing
Copy link
Member Author

I've temporarily addressed this by SSHing into the slave and running

sudo apt-get install git

@sopel
Copy link
Member

sopel commented Jun 18, 2015

The current state comprises the only remaining snowflake aspect and is particularly relevant due to our EC2 spot instance usage - it should be addressed accordingly. Given Git is to be considered a precondition for pretty much everything in (our) software development these days, and is readily available on the master, I vote to include it directly via BOSH.

The only argument to the contrary would be more control over the Git versions, but this can optionally still be done, and conversely unqualified jobs might get executed on either the master or the slave, thus it seems reasonable to use the same Git version in both scenarios. Our Windows slave comes with Git readily installed too btw. (baked into the AMI).

  • Whether jobs can be executed on both master and slave depends on the setup of course, but our current one allows this (even though I'm not a fan of using the master for actual builds).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants