Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Because trying to create the /usr/share/jenkins/gituser with the jenk…
Browse files Browse the repository at this point in the history
…ins user, or whatever the default user that is inherited from earlier in the Dockerfile, causes a permissions error, now using ROOT to create the files for the git credentials (#10)
  • Loading branch information
pfrank13 authored and marcingrzejszczak committed Oct 20, 2016
1 parent 269f227 commit f4de601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ COPY seed/init.groovy /usr/share/jenkins/ref/init.groovy
COPY seed/jenkins_pipeline.groovy /usr/share/jenkins/jenkins_pipeline.groovy
COPY seed/settings.xml /usr/share/jenkins/settings.xml

USER root

# Generated via start.sh
# If you don't want to provide it just put empty files there
RUN printf "%s" "${gituser}" > /usr/share/jenkins/gituser
Expand Down

0 comments on commit f4de601

Please sign in to comment.