Openshift jenkins plugin throwing x509 error

Solution Unverified - Updated -

Issue

  • Jenkins throwing x509 error
  • Logs from the Jenkins pods contains following messages.

    Caught: hudson.AbortException: tag returned an error;
    {reference={}, err=Unable to connect to the server: x509: certificate signed by unknown authority
    , verb=tag, cmd=oc --server=https://xxx.xxx.xxx:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=prod-ifttt --token=XXXXX tag itt-ifttt/ifttt-sms:1.0.0 uat-ifttt/ifttt-sms:latest , out=, status=1}
    

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 3
    • 4
  • Jenkins with OCP plugins
  • Executing OpenShift api commands on another cluster

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