2012-11-23 15:25:14 +00:00
|
|
|
#!/bin/bash
|
2012-11-23 09:12:42 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
source $(dirname $0)/defaults
|
|
|
|
|
|
|
|
if [ -n "${JENKINS_PLUGINS}" ];then
|
2012-11-27 17:37:57 +00:00
|
|
|
for plugin in ${JENKINS_PLUGINS//,/ }; do
|
2012-11-23 09:12:42 +00:00
|
|
|
wget -q http://updates.jenkins-ci.org/latest/${plugin}.hpi -O /var/lib/jenkins/plugins/${plugin}.hpi
|
|
|
|
done
|
|
|
|
chown jenkins:nogroup /var/lib/jenkins/plugins/*
|
|
|
|
fi
|