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

add-job-to-view and get-view require anonymous rights event though I'm passing credentials

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: java-client-api
    • Labels:
      None
    • Environment:
      Windows
    • Similar Issues:

      Description

      I've found that I'm required to check the 'read' rights under View and Jobs for the Anonymous user to be able to run these commands successfully:

      java -jar C:/Users/ADMINI~1/AppData/Local/Temp/2/jenkins-cli.jar -s  https://jenkins-devops.aws.aspect.com/ add-job-to-view VIA Brooklyn_Detailed --username uipteam1@aspect.com --password *********

      java -jar C:/Users/ADMINI~1/AppData/Local/Temp/2/jenkins-cli.jar -s  https://jenkins-devops.aws.aspect.com/ get-view VIA --username uipteam1@aspect.com --password ******

      Why isn't it using the specified user (uipteam1@aspect.com)?

       

      Here's the output that I get when I don't have the anonymous read rights set

      $ java -jar C:/Users/ADMINI~1/AppData/Local/Temp/2/jenkins-cli.jar -s  https://jenkins-devops.aws.aspect.com/ add-job-to-view VIA Brooklyn_Detailed --username uipteam1@aspect.com --password *******

      ERROR: No such job 'Brooklyn_Detailed'

      $ java -jar C:/Users/ADMINI~1/AppData/Local/Temp/2/jenkins-cli.jar -s  https://jenkins-devops.aws.aspect.com/ get-view VIA --username uipteam1@aspect.com --password *******
      ERROR: anonymous is missing the View/Read permission

       

      Other API calls to create and lookup jobs and to create view doesn't seem to fall victim to this issue.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              khmarbaise Karl-Heinz Marbaise
              Reporter:
              achalupa Andreas Chalupa
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: