Jenkins script "/usr/local/bin/install-plugins.sh" fails randomly.

Solution Verified - Updated -

Issue

  • Jenkins script "/usr/local/bin/install-plugin.sh" fails randomly with error message:

    Failed to download plugin: http_request or http_request-plugin
    Error: error building at STEP "RUN /usr/local/bin/install-plugins.sh 
    /opt/openshift/(plugin_name)": error while running runtime: exit status 1
    
  • When trying from a Pod to reach an external URL using curl an empty response is returned:

    > * Server certificate:
    > *  subject: CN=updates.jenkins.io
    > *  start date: Jul 23 06:43:25 2022 GMT
    > *  expire date: Aug  6 06:43:25 2022 GMT
    > *  subjectAltName: host "updates.jenkins.io" matched cert's "updates.jenkins.io"
    > *  issuer: C=US; ST=California; O=Zscaler Inc.; OU=Zscaler Inc.; CN=Zscaler Intermediate Root CA (zscaler.net) (t) 
    > *  SSL certificate verify ok.
    > } [5 bytes data]
    > * TLSv1.3 (OUT), TLS app data, [no content] (0):
    > } [1 bytes data]
    > > GET /latest/nexus-jenkins-plugin.hpi HTTP/1.1
    > > Host: updates.jenkins.io
    > > User-Agent: curl/7.61.1
    > > Accept: */*
    > > 
    > * Empty reply from server
    > * Connection #0 to host updates.jenkins.io left intact
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.9
  • Proxy Server with SSL Interception functionality.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content