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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • java-client-api
    • None
    • Windows

      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.

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

              Created:
              Updated: