where I build a jenkins image, I use jenkins-plugin-cli to install plugins automatically.
Then it reports this problem:
exception (org.apache.http.NoHttpResponseException) caught when processing request to {s}->https://updates.jenkins.io:443: The target server failed to respond
I ping updates.jenkins.io
, ip is 52.202.51.185
, but 100% packet loss.
Build Detailed log:
Step 4/5 : RUN jenkins-plugin-cli --verbose --plugin-file /plugins.txt
---> Running in 7005e7811a02
File containing list of plugins to be downloaded: /plugins.txt
Reading in plugins from /plugins.txt
No directory to download plugins entered. Will use default of /usr/share/jenkins/ref/plugins
Using update center https://updates.jenkins.io/update-center.json from JENKINS_UC environment variable
Using experimental update center https://updates.jenkins.io/experimental/update-center.json from JENKINS_UC_EXPERIMENTAL environment variable
Using incrementals mirror https://repo.jenkins-ci.org/incrementals from JENKINS_INCREMENTALS_REPO_MIRROR environment variable
No CLI option or environment variable set for plugin info, using default of https://updates.jenkins.io/plugin-versions.json
No war entered. Will use default of /usr/share/jenkins/jenkins.war
Retrieving update center information
Created cache at: /root/.cache/jenkins-plugin-management-cli
Update center URL: https://updates.jenkins.io/update-center.json?version=2.387.3
Cache miss for: update-center-2.387.3
Jan 26, 2024 9:16:19 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {s}->https://updates.jenkins.io:443: The target server failed to respond
Jan 26, 2024 9:16:19 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://updates.jenkins.io:443
Unable to retrieve JSON from https://updates.jenkins.io/update-center.json?version=2.387.3: Truncated chunk (expected size: 8,096; actual size: 0)
Tried downloading update-center-2.387.3 from https://updates.jenkins.io/dynamic-stable-2.387.3/update-center.json (attempt 1 of 3)
Is the service normal?