blob: f4193b3e7de4437dc6ca57b0a0fd7b9d557e487c [file] [log] [blame]
#! /bin/bash
# Parse a support-core plugin -style txt file as specification for jenkins plugins to be installed
# in the reference directory, so user can define a derived Docker image with just :
#
# FROM jenkins
# COPY plugins.txt /plugins.txt
# RUN /usr/local/bin/plugins.sh /plugins.txt
#
REF=/usr/share/jenkins/ref/plugins
mkdir -p $REF
while read spec; do
plugin=(${spec//:/ });
curl -L ${JENKINS_UC}/download/plugins/${plugin[0]}/${plugin[1]}/${plugin[0]}.hpi -o $REF/${plugin[0]}.hpi;
done < $1