Last active
August 29, 2015 14:27
-
-
Save kdimatteo/0909cd415459869cce03 to your computer and use it in GitHub Desktop.
RHEL CI Provision
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y jenkins | |
yum install -y git | |
yum install -y nodejs | |
yum install -y npm | |
echo "Fix Node JS naming issue with a symlink" | |
ln -s /usr/bin/nodejs /usr/bin/node | |
#download jenkins CLI | |
wget http://localhost:6060/jnlpJars/jenkins-cli.jar | |
curl -L http://updates.jenkins-ci.org/update-center.json | sed '1d;$d' | curl -X POST -H 'Accept: application/json' -d @- http://localhost:6060/updateCenter/byId/default/postBack | |
echo "Installing Jenkins plugins..." | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin git | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin git-client | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin credentials | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin multiple-scms | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin github-oauth | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin conditional-buildstep | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin greenballs | |
java -jar jenkins-cli.jar -s http://localhost:6060/ install-plugin embeddable-build-status | |
echo "Restarting Jenkins..." | |
/etc/init.d/jenkins restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment