-
Bug
-
Resolution: Unresolved
-
Minor
-
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.