Jenkins Configuration as Code -- jenkins-plugin-cli not downloading all plugins

Yesterday I configured Jenkins with configuration as source code and built my Docker image so that it would install plugins via “docker build”. Today (and most of last night), the jenkins-plugins-cli step is failing because not all of the plugins are being downloaded. My Dockerfile is pretty simple and the plugins.txt file doesn’t have much in it. I’ve attempted to build the image on four different RHEL machines, one on my local laptop, one in VMware and two in Oracle cloud. They all behave the same way; the plugins never download.

Am I doing something wrong by specifying :latest for my plugins?

The only thing that I can see that’s in common with all of the build failures is:

> Apr 13, 2023 2:44:20 PM org.apache.http.impl.execchain.RetryExec execute
> INFO: Retrying request to {s}->https://ftp.yz.yamagata-u.ac.jp:443
> Apr 13, 2023 2:44:20 PM org.apache.http.impl.execchain.RetryExec execute
> INFO: Retrying request to {s}->https://ftp.yz.yamagata-u.ac.jp:443
> Apr 13, 2023 2:44:20 PM org.apache.http.impl.execchain.RetryExec execute
> INFO: Retrying request to {s}->https://ftp.yz.yamagata-u.ac.jp:443

Blockquote

I’m not sure why I’m reaching out to the .jp domain…

The IP address of the computer performing the request is converted to a geographic location with a geoIP search by get.jenkins.io, then the mirrors are chosen based on distance to that computed location. If the geoIP location of your IP address is incorrect, it will cause the mirror choice to be incorrect as well.

The mirror list for a specific update center item is available by appending ?mirrorlist to the URL of the item that is listed at on the latest page (and others) of https://updates.jenkins.io/ . Note that URL needs to be opened from the machine performing the request, not from your desktop machine.

Well, I’ve done absolutely nothing and now the docker build is working perfectly on three of the four servers with which I’ve been debugging for the last 18 hours. I should have created a new topic 18 hours ago. In typical user fashion, can I “blame the network” or “blame DNS?”

:smile: