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

CLI authenticated mode not working

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
       2010 x86_64 x86_64 x86_64 GNU/Linux
    • Similar Issues:

      Description

      Hi
      I am trying to clone hudson jobs and I got to know that hudson-cli can be used is but I was able to get cloned if there is no security constraints are there i.e <useSecurity>true</useSecurity> in config.xml
      But I need to have security and use this api to work on , Please suggest me best way or is this is still under development
      . java -jar ./hudson-cli.jar -s http://10.10.88.55:9080/hudson/ copy-job bldtest2-bb bldtest2-b5ff
      Please let me know how use login credentials and I have attached my current security setup screen shot.

      Erros

      java -jar ./hudson-cli.jar -s http://10.10.4.60:9080/hudson/ copy-job bldtest2-bb bldtest2-b5ff hudson.security.AccessDeniedException2: anonymous is missing the Create permission at hudson.security.ACL.checkPermission(ACL.java:53) at hudson.model.Node.checkPermission(Node.java:316) at hudson.cli.CopyJobCommand.run(CopyJobCommand.java:53) at hudson.cli.CLICommand.main(CLICommand.java:184) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                sharp859 sharp859
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: