UNCLASSIFIED

Commit fab13236 authored by Michael Desantis's avatar Michael Desantis
Browse files

update files for change to plugin behavior to allow backups from jenkins_home

parent b80f8a01
Pipeline #283287 failed with stages
in 5 minutes and 49 seconds
ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG BASE_IMAGE=opensource/openjdk/openjdk8
ARG BASE_TAG=1.8.0
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
#FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM openjdk8:1.8.0
USER root
### add licenses to this directory
......@@ -72,8 +73,8 @@ RUN cp /root/tmp/dependencies/tini/tini-$TINI_VERSION /sbin/tini \
RUN cp /root/tmp/dependencies/jenkins/jenkins-war-$JENKINS_VERSION.war /usr/share/jenkins/jenkins.war
## Place plugins in temp directory
RUN mkdir /tmp/plugins && cp /root/tmp/dependencies/plugins/* /tmp/plugins && chown -R ${uid}:${gid} /tmp/plugins && rm -rf /root/tmp/*
RUN mkdir $JENKINS_HOME/plugins && cp /root/tmp/dependencies/plugins/* $JENKINS_HOME/plugins && chown -R ${uid}:${gid} $JENKINS_HOME/plugins && \
rm -rf /root/tmp/*
RUN chown -R ${user} "$JENKINS_HOME" "$REF"
......
......@@ -9,9 +9,10 @@ touch "${COPY_REFERENCE_FILE_LOG}" || { echo "Can not write to ${COPY_REFERENCE_
echo "--- Copying files at $(date)" >> "$COPY_REFERENCE_FILE_LOG"
find "${REF}" \( -type f -o -type l \) -exec bash -c '. /usr/local/bin/jenkins-support; for arg; do copy_reference_file "$arg"; done' _ {} +
mkdir -p ${JENKINS_HOME}/plugins
cp /tmp/plugins/* ${JENKINS_HOME}/plugins
rm -rf /tmp/plugins
#Change plugin behavior for plugin backups
#mkdir -p ${JENKINS_HOME}/plugins
#cp /tmp/plugins/* ${JENKINS_HOME}/plugins
#rm -rf /tmp/plugins
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment