Docker: Not able to install a list of plugins using install-plugins.sh

Created on 29 Jan 2019  路  8Comments  路  Source: jenkinsci/docker

Issues and Contributing

Please note that only issues related to this Docker image will be addressed here.
ISSUE:
I am not able to install a list of packages mentioned in a file using this script "install-plugins.sh".

QUERIES:
1) I need to install a list of packages mentioned in a file .
2) If a plugin has a updated version and we want to install that updated version , so can we do that.
3) If a plugin is already present then it will try to install that plugin again

  • If you have Docker related issues, please ask in the Docker user mailing list.
  • If you have Jenkins related issues, please ask in the Jenkins mailing lists.
  • If you are not sure, then this is probably not the place to create an issue and you should use any of the previously mentioned mailing lists.

If after going through the previous checklist you still think you should create an issue here please provide:

Docker commands that you execute

Actual result

Not able to install plugin

Expected outcome

It should install a list of plugin mentioned in a file

Have you tried a non-dockerized Jenkins and get the expected outcome?

Output of docker version

Other relevant information

question

Most helpful comment

Update :

Actually I have the same issue: failing with Could not resolve host: updates.jenkins.io
I don't do anything exotic just following the doc + adding few perm constraints.

COPY --chown=jenkins:jenkins  plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

I suppose the update center is kinda broken (It seems there is a redirection from updates.jenkins.io to mirrors.jenkins.io, but 404 ), because it used to work last week.

Performing a handwritten curl it works so I have any clue why (Same if I copy paste url in my browser)
Really weird.

if anyone has any info, I'll be glad.

Thank you.

All 8 comments

Hi Team,

I am also getting the below error , while building the docker image . Can you please let me know the cause of this issue

Error Logs
Downloading plugin: git-client from https://updates.jenkins.io/download/plugins/git-client/latest/git-client.hpi
Downloading plugin: ace-editor from https://updates.jenkins.io/download/plugins/ace-editor/latest/ace-editor.hpi
curl: (6) Could not resolve host: updates.jenkins.io
06:40:53 Failure (6) Retrying in 1 seconds.

@gakhrejah likely there was a temporary glitch in the update center. CC @olblak

Please provide your Dockerfile, or an excerpt that demonstrates the issue @gakhrejah.

DOCKERFILE

FROM jenkinsci/jenkins:alpine

Just info about who created this

COPY Jenkins-SetInitialState-Completed.groovy /usr/share/jenkins/ref/init.groovy.d/Jenkins-SetInitialState-Completed.groovy

COPY Jenkins-Admin-User-Creation-AtInitial.groovy /usr/share/jenkins/ref/init.groovy.d/Jenkins-Admin-User-Creation-AtInitial.groovy
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN xargs /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

ENV JAVA_OPTS "-Djenkins.install.runSetupWizard=false"

  • why did put xargs before /usr/local/bin/install-plugins.sh? I suspect that might be the issue.
  • Also you didn't provide the error you were getting in the first place.
  • What is the content of plugins.txt please?

There hasn't been any response from @gakhrejah since January. I propose closing this out unless more information is provided about the issue.

Update :

Actually I have the same issue: failing with Could not resolve host: updates.jenkins.io
I don't do anything exotic just following the doc + adding few perm constraints.

COPY --chown=jenkins:jenkins  plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

I suppose the update center is kinda broken (It seems there is a redirection from updates.jenkins.io to mirrors.jenkins.io, but 404 ), because it used to work last week.

Performing a handwritten curl it works so I have any clue why (Same if I copy paste url in my browser)
Really weird.

if anyone has any info, I'll be glad.

Thank you.

I see this in my Ansible task output "stderr": "curl: (6) Could not resolve host: updates.jenkins.io".

Was this page helpful?
0 / 5 - 0 ratings

Related issues

subesokun picture subesokun  路  4Comments

szimmer1 picture szimmer1  路  5Comments

ozbillwang picture ozbillwang  路  3Comments

matthijsvdr picture matthijsvdr  路  4Comments

greenrobot picture greenrobot  路  7Comments