Support for Bearer token in jenkins-cli

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I would like to use the built-in jenkins-cli for our automation towards Jenkins.

      However, we are using the Openshift OAuth login integration. For this to work, we need to use the Openshift token as Bearer to be able to login, but jenkins-cli always creates Basic value in the auth header.

      I.e. we would like to do something as the following ("oc" is the Openshift client):

      oc login https://ose-console.cluster
      TOKEN=$(oc whoami -t)
      JENKINS_URL=https://jenkins.in.ose.cluster java -jar jenkins-cli.jar -auth $TOKEN help build
      

            Assignee:
            Unassigned
            Reporter:
            Soren A D
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: