UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
S
Solutions Delivery Platform
jenkins
jenkins
Commits
fab13236
Commit
fab13236
authored
May 28, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Dockerfile
Dockerfile
+4
-3
scripts/jenkins.sh
scripts/jenkins.sh
+4
-3
No files found.
Dockerfile
View file @
fab13236
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
"
...
...
scripts/jenkins.sh
View file @
fab13236
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment