Openshift jenkins plugin throwing x509 error

Solution Unverified - Updated -

Issue

  • OpenShift Jenkins plugins throwing x509 error

  • However, when we use OpenShift api or oc client, it works fine.

  • 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) v3.9

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