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

Cannot use jenkins-cli with github oauth plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm using the github-oauth plugin for authentication and the Github Commiter Authorization Strategy and I'm unable to use the jenkins-cli with it. Running this command:

      java -jar jenkins-cli.jar -s http://localhost:8080 who-am-i --username <username> --password <jenkins-api-token> 

      results in an error:

      "--username" is not a valid option
      java -jar jenkins-cli.jar who-am-i
      Reports your credential and permissions.
      

      I've also tried ssh key auth with the -i flag but get a similar error about -i being an invalid option.

      Is there another way to use jenkins-cli with github auth?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sag47 Sam Gleske
              Reporter:
              heydrick Eric Heydrick
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: