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

allow using the help command without access rights to the server

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • cli
    • None

    Description

      if you are new with the jenkins-cli you would like to know, how to pass credentials/authenticate, but currently, if you configured the security for your jenkins installation, you can't issue
      java -jar jenkins-cli.jar -s http://localhost:8080/ help
      from the command line, because even the help command is depends on the tries to connect to the server (needs Overall read permission).
      I would propose to:
      either allow the help to be executed offline or print some usefull information for the
      Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403
      error, like: it seems that you need to log in to access your jenkins installation, please provide your credentials with --username and --password or --pasword-file

      Attachments

        Issue Links

          Activity

            Consolidating to JENKINS-8815.

            kohsuke Kohsuke Kawaguchi added a comment - Consolidating to JENKINS-8815 .

            People

              Unassigned Unassigned
              tyrael Ferenc Kovacs
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: