Creating Jobs on Startup

178 views
Skip to first unread message

Tomasz Szandała

unread,
Jan 31, 2017, 1:51:27 PM1/31/17
to job-dsl-plugin
Hi All,
I was tasked to create Jenkins startable in cloud. I am stuck on: how to create jobs on Jenkins startup?
I have added Nodes creation,plugins installation, other configuration, but my question is: can I use my DSL scripts to create jobs on Jenkins during startup?

Victor Martinez

unread,
Jan 31, 2017, 4:58:20 PM1/31/17
to job-dsl-plugin
Off the top of my head:

Then  you could either create a Job as part of the groovy hook script or even trigger an existing seed job which will basically create those jobs only on the startup.

Cheers

Sai Kishore

unread,
Feb 1, 2017, 12:45:26 AM2/1/17
to job-dsl...@googlegroups.com
hai we can use seed job and trigger it while creating it from groovy script, I have  a sample grooovy script which trigger my seed job on jenkins start up.


Thanks
Saikishore Amirishetty

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/a97b624b-1fac-436e-8ba1-2ec94aeb971a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

create-seed-job.groovy
Reply all
Reply to author
Forward
0 new messages