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 after going through the previous checklist you still think you should create an issue here please provide:
Not able to install plugin
It should install a list of plugin mentioned in a file
docker versionHi 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
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"
xargs before /usr/local/bin/install-plugins.sh? I suspect that might be the issue. 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".
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.
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.