[JIRA] (JENKINS-61965) Support for Bearer token in jenkins-cli

19 views
Skip to first unread message

sorend@gmail.com (JIRA)

unread,
Apr 19, 2020, 5:23:02 PM4/19/20
to jenkinsc...@googlegroups.com
Soren A D created an issue
 
Jenkins / New Feature JENKINS-61965
Support for Bearer token in jenkins-cli
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: cli
Created: 2020-04-19 21:22
Priority: Minor Minor
Reporter: Soren A D

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

sorend@gmail.com (JIRA)

unread,
Apr 19, 2020, 5:28:03 PM4/19/20
to jenkinsc...@googlegroups.com
Soren A D updated an issue
Change By: Soren A D
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 .

 

sorend@gmail.com (JIRA)

unread,
Apr 19, 2020, 5:31:02 PM4/19/20
to jenkinsc...@googlegroups.com
Soren A D updated an issue
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.

 


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

 
{noformat}
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
{noformat}
 

 

sorend@gmail.com (JIRA)

unread,
Apr 19, 2020, 5:32:02 PM4/19/20
to jenkinsc...@googlegroups.com
Soren A D updated an issue
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.

 

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

 
{noformat}
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
{noformat}

 

 
Reply all
Reply to author
Forward
0 new messages