Skip to content

Commit 99c6e2b

Browse files
authored
fix(docker): Uses override to allow for changes to yaml or plugins.txt to be taken into account. (#460)
1 parent a90da83 commit 99c6e2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dockerfiles/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ USER jenkins
2525
RUN echo "${JENKINS_VERSION}" > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state
2626

2727
# We copy a list of plugins to install to the Jenkins ref directory in the image.
28-
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
28+
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt.override
2929

3030
# We use the Jenkins plugin CLI to install the plugins listed in the plugins.txt file.
31-
RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt
31+
RUN ln -s /usr/share/jenkins/ref/plugins.txt.override /usr/share/jenkins/ref/plugins.txt && jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt
3232

3333
# We copy a pre-configured Jenkins configuration file to the Jenkins ref directory in the image.
3434
# This allows us to pre-configure Jenkins with our desired settings.
35-
COPY jenkins.yaml /usr/share/jenkins/ref/jenkins.yaml
35+
COPY jenkins.yaml /usr/share/jenkins/ref/jenkins.yaml.override

0 commit comments

Comments
 (0)