Skip to content

riboseinc/homebrew-jenkins-slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homebrew for jenkins-slave

Build Status

This tap contains a formula to install the Jenkins Slave on macOS.

Install

brew tap riboseinc/jenkins-slave
brew install jenkins-slave

You can start the slave manually for test via commandline:

jenkins-slave -jnlpUrl http://your-jenkins/computer/node/slave-agent.jnlp -secret 9...b

But this is not recomended for production setup and only for testing. For production setup you should install jenkins-slave as daemon. To do so you first need to configure he daemon:

jenkins-slave-configure --url http://your-jenkins/computer/node/slave-agent.jnlp --secret ******

and then install it:

sudo brew services start jenkins-slave

Development

If you've cloned this repo and want to install your work in progress locally run the following command from inside this repository:

brew install --build-from-source ./jenkins-slave.rb

Good resource to stat is the Formula Cookbook.

Launch Daemons

Services on Mac OS are done by Launch Daemons (Daemons and Services Programming Guide from Apple).

To check if the service runs run this command:

sudo launchctl list | grep jenkins

Thisshould print:

2673    0       com.ribose.jenkins.slave

The first number is the PID of the running command and the second number is the status code. A status indicates an error. You cna inspect it wuth launchctl error <NUMBER>.

License

Code is under the BSD 2 Clause license.

Releases

No releases published

Packages

No packages published

Languages