Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43822

Jenkins-cli seems to not support anything different from Github token


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: github-oauth-plugin
    • Labels:
    • Environment:
      github-oauth-plugin 0.26
      matrix-auth-plugin 1.5
    • Similar Issues:


      Documentation at https://wiki.jenkins-ci.org/display/JENKINS/GitHub+OAuth+Plugin#GitHubOAuthPlugin-CallingJenkinsAPIusingGitHubPersonalAccessTokens says:

      One can still call the Jenkins API by using Jenkins tokens or use the Jenkins CLI with an SSH key for authentication. However, the GitHub OAuth plugin provides another way to call the Jenkins API by allowing the use of a GitHub Personal Access Token.

      However, I cannot make SSH authentication work (by adding SSH keys to the users being created by the extension) nor Jenkins tokens work (by using the tokens from their profiles).
      The only authentication option seems to be:

      java -jar /usr/local/bin/jenkins-cli.jar -s https://jenkins -noKeyAuth who-am-i --username elife-alfred-user --password my_github_token

      Is the documentation outdated or is it a regression?


          Issue Links


            giorgiosironi Giorgio Sironi created issue -
            elasticdog Aaron Bull Schaefer made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-27045 [ JENKINS-27045 ]
            sag47 Sam Gleske made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            sag47 Sam Gleske made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            sag47 Sam Gleske made changes -
            Link This issue relates to JENKINS-43767 [ JENKINS-43767 ]
            sag47 Sam Gleske made changes -
            Link This issue relates to JENKINS-44020 [ JENKINS-44020 ]


              • Assignee:
                sag47 Sam Gleske
                giorgiosironi Giorgio Sironi
              • Votes:
                3 Vote for this issue
                6 Start watching this issue


                • Created: