Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 66 lines (54 sloc) 1.082 kb
#!/bin/bash
#==================================
# Configuration
#==================================
HOSTNAME=localhost
PORT=8080
#==================================
# Main
#==================================
JENKINS_PLUGINS=(
git
checkstyle
htmlpublisher
clover
plot
)
PERL_MODULES=(
Devel::Cover
Devel::Cover::Report::Clover
Perl::Metrics::Lite
https://github.com/dann/tap-to-junit-xml/tarball/master
)
setup() {
fetch_jenkins_cli
install_jenkins_plugins
install_jenkins_related_perl_modules
restart_jenkins
clean_jenkins_cli
}
fetch_jenkins_cli() {
curl -LO http://${HOSTNAME}:${PORT}/jnlpJars/jenkins-cli.jar
}
jenkins_cli() {
java -jar jenkins-cli.jar -s http://${HOSTNAME}:${PORT} $@
}
install_jenkins_plugins() {
for plugin in ${JENKINS_PLUGINS[@]}
do
jenkins_cli install-plugin ${plugin}
done
}
install_jenkins_related_perl_modules() {
for module in ${PERL_MODULES[@]}
do
cpanm $module
done
}
restart_jenkins() {
jenkins_cli safe-restart
}
clean_jenkins_cli() {
rm jenkins-cli.jar
}
setup
Jump to Line
Something went wrong with that request. Please try again.