Are you sure that "project1" actually exists and is called exactly what you are providing? (Not sure if case matters etc. but worth checking)
Richard. On Mon, Jul 29, 2013 at 4:35 PM, suresh <sureshconfigurat...@gmail.com>wrote: > Hi, > > I am not able to create the copy the job from copy-job command > > Explain: > > I created Jenkins user suresh and password suresh > > Below command i tried but did not work > > >java -jar c:\jenkins.jar -s http://localhost:8181/jenkins copy-job > project1 > project2 --username suresh --password suresh > > > Below command also i tried but did not work > > >java -jar c:\jenkins.jar -s http://localhost:8181/jenkins copy-job > --username suresh --password suresh project1 project2 > > Output: > > No such job 'project1' > > java -jar jenkins-cli.jar copy-job args... > Copies a job. > SRC : Name of the job to copy > DST : Name of the new job to be created. > --username VAL : User name to authenticate yourself to Jenkins > --password VAL : Password for authentication. Note that passing a > password in arguments is insecure. > --password-file VAL : File that contains the password > > Please help on this how to resolve > > > > -- > View this message in context: > http://jenkins-ci.361315.n4.nabble.com/Reg-Jenkins-cli-copy-job-tp4674887.html > Sent from the Jenkins users mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.