Hi Kannan, I am able to create a job with credentials using below command
java -jar c:\jenkins.jar -s http://localhost:8181/jenkins create-job project5 < config.xml --username suresh --password --suresh I am unable to create a copy job with credentials using below commands java -jar c:\jenkins.jar -s http://localhost:8181/jenkins copy-job project5 project6 --username suresh --password --suresh java -jar c:\jenkins.jar -s http://localhost:8181/jenkins copy-job --username suresh --password --suresh project5 project6 Regards, Suresh On Fri, Jul 12, 2013 at 11:10 PM, skidad [via Jenkins CI] < [email protected]> wrote: > This is what I use to copy a job: > > java -jar c:\jenkins-cli.jar -s http://jenkins copy-job --username > myjenkinsuser --password myjenkinspassword job-name new-job-name > > I think you are missing username and password parameters. > > Derek . . . > > On Thursday, July 11, 2013 9:39:20 PM UTC-7, suresh kamini wrote: > >> Hi Kannan, >> >> Thanks for your reply. >> >> My requirement is create job automatically by Jenkins CLI for projects >> >> I was trying but getting error authentication fail. >> >> Please guide me step by step >> >> >> >> Also is it possible to integrate Jenkins job automatic through Perl or >> java API >> >> Regards, >> Suresh >> >> >> >> >> >> >> On Fri, Jul 12, 2013 at 7:02 AM, Kannan Manickam-2 [via Jenkins CI] <[hidden >> email] <http://user/SendEmail.jtp?type=node&node=4672748&i=0>> wrote: >> >>> Suresh, >>> >>> Could you be more specific? Do you want to create jenkins jobs >>> programatically? >>> >>> - >>> Kannan. >>> >>> On Jul 8, 2013, at 4:48 AM, suresh <[hidden >>> email]<http://user/SendEmail.jtp?type=node&node=4672739&i=0>> >>> wrote: >>> >>> > Is it possible to integrate with other tools for automatic creation of >>> > projects? >>> > >>> > >>> > >>> > -- >>> > View this message in context: http://jenkins-ci.361315.n4.** >>> nabble.com/Is-it-possible-to-**integrate-with-other-tools-** >>> for-automatic-creation-of-**projects-tp4672021.html<http://jenkins-ci.361315.n4.nabble.com/Is-it-possible-to-integrate-with-other-tools-for-automatic-creation-of-projects-tp4672021.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 [hidden >>> email]<http://user/SendEmail.jtp?type=node&node=4672739&i=1>. >>> >>> > For more options, visit >>> > https://groups.google.com/**groups/opt_out<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 [hidden >>> email]<http://user/SendEmail.jtp?type=node&node=4672739&i=2>. >>> >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>. >>> >>> >>> >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> http://jenkins-ci.361315.n4.**nabble.com/Is-it-possible-to-** >>> integrate-with-other-tools-**for-automatic-creation-of-** >>> projects-tp4672021p4672739.**html<http://jenkins-ci.361315.n4.nabble.com/Is-it-possible-to-integrate-with-other-tools-for-automatic-creation-of-projects-tp4672021p4672739.html> >>> To unsubscribe from Is it possible to integrate with other tools for >>> automatic creation of projects?, click here. >>> NAML<http://jenkins-ci.361315.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >>> >> >> >> ------------------------------ >> View this message in context: Re: Is it possible to integrate with other >> tools for automatic creation of >> projects?<http://jenkins-ci.361315.n4.nabble.com/Is-it-possible-to-integrate-with-other-tools-for-automatic-creation-of-projects-tp4672021p4672748.html> >> >> Sent from the Jenkins users mailing list >> archive<http://jenkins-ci.361315.n4.nabble.com/Jenkins-users-f361316.html>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 [hidden email]<http://user/SendEmail.jtp?type=node&node=4672821&i=0> > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://jenkins-ci.361315.n4.nabble.com/Is-it-possible-to-integrate-with-other-tools-for-automatic-creation-of-projects-tp4672021p4672821.html > To unsubscribe from Is it possible to integrate with other tools for > automatic creation of projects?, click > here<http://jenkins-ci.361315.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4672021&code=c3VyZXNoY29uZmlndXJhdGlvbkBnbWFpbC5jb218NDY3MjAyMXwtMTYwNDQ3NDUyOQ==> > . > NAML<http://jenkins-ci.361315.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Is-it-possible-to-integrate-with-other-tools-for-automatic-creation-of-projects-tp4672021p4673313.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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
