diskimage-builder/flavours/jenkins/install.d/11-jenkins-plugins

14 lines
324 B
Plaintext
Raw Normal View History

2012-11-23 15:25:14 +00:00
#!/bin/bash
set -e
set -o xtrace
source $(dirname $0)/defaults
if [ -n "${JENKINS_PLUGINS}" ];then
for plugin in ${JENKINS_PLUGINS//,/ }; then
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