Installing Jenkins Plugins to Docker Jenkins

前端 未结 1 1640
执笔经年
执笔经年 2020-12-09 09:04

I have the following Dockerfile with jenkins as the base image:

FROM jenkins
USER root
ENV JENKINS_MIRROR http://mirrors.jenkins-ci.org
RUN for         


        
相关标签:
1条回答
  • 2020-12-09 09:43

    I can't read your screenshots, but you don't seem to be following the official instructions. See https://github.com/cloudbees/jenkins-ci.org-docker under "Installing more tools". Note:

    • You should save the plugins to /usr/share/jenkins/ref/plugins
    • You could use a plugins.txt file instead, which contains the names of your plug-ins, and you can process with the provided plugins.sh script. This looks like:
    COPY plugins.txt /usr/share/jenkins/plugins.txt
    RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt
    

    I think the reason your approach wasn't working was to do with some processing in the start-up script.

    0 讨论(0)
提交回复
热议问题