![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
current |
|
Assignee:
|
Unassigned |
|
Components:
|
cli |
|
Created:
|
13/May/13 6:00 AM
|
|
Description:
|
1: verified that I am authenticated: java -jar jenkins-cli.jar -s http://myserver/jenkins who-am-i
Authenticated as: myuser
Authorities:
authenticated
2: tried to run a trivial script via groovysh and got an error
java -jar jenkins-cli.jar -s http://myserver/jenkins groovysh 'jenkins.model.Jenkins.instance.pluginManager.plugins.each { println("${it.longName} - ${it.version}") };'
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at $Proxy2.main(Unknown Source)
at hudson.cli.CLI.execute(CLI.java:271)
at hudson.cli.CLI._main(CLI.java:417)
at hudson.cli.CLI.main(CLI.java:322)
Caused by: hudson.remoting.ProxyException: hudson.security.AccessDeniedException2: anonymous is missing the Administer permission
The workaround is using command 'groovysh' instead.
java -jar jenkins-cli.jar -s http://localhost:8080/jenkins/ groovy test_script.gsh
It's also discussed in group.[1]
[1] https://groups.google.com/forum/#!msg/jenkinsci-users/Vb1p7tbWfQk/4vcVrHOC19MJ
|
|
Environment:
|
version 1.502
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
Meng Xin Zhu
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/groups/opt_out.