Utility jobs

115 views
Skip to first unread message

shanz

unread,
Aug 12, 2011, 12:04:37 PM8/12/11
to Jenkins Users
Lets say I have a sequence of jobs.
One of the jobs is a utility job which I want to call from several
other jobs. How can this be achieved?

EG:

Job 1
Job 2
Call Job Utility
Job3
Job 4
Call Job Utility
Job 5
Job 6

etc

Job Utility has to specify the following job to trigger but this needs
to vary.

Didier Durand

unread,
Aug 12, 2011, 12:45:27 PM8/12/11
to Jenkins Users
Hi,

The Parametrized Trigger Plugin (https://wiki.jenkins-ci.org/display/
JENKINS/Parameterized+Trigger+Plugin) seems to be the way to go for
you.

regards

didier

shanz

unread,
Aug 12, 2011, 6:05:30 PM8/12/11
to Jenkins Users
Didier,

Thanks for replying.
I already use the parameterized trigger plugin but didn't see how to
achieve this scenario with it.
Maybe I need to choose "Block for Completion"?

The plugin page says, "This triggering mechanism can be used both as a
post-build step or as a build step, in which case you can also block
for the completion of the triggered builds. This lets you create a
"function call" like semantics."

That sounds like what I'm after so I'll revisit it again!

Duncan

shanz

unread,
Aug 15, 2011, 6:09:56 AM8/15/11
to Jenkins Users
I am having problems with this.
When I tick "Block until the triggered projects finish their builds",
the called job hangs with "
pending - Waiting for next available executor".
It works if I don't tick the "Block until.." option.
What am I missing?

Thanks.

shanz

unread,
Aug 15, 2011, 7:58:47 AM8/15/11
to Jenkins Users
I have changed the "# of executors" from 1 to 2 to fix the problem.
It just so happens that my Virtual Machine server Jenkins server has a
dual-core processor.
I assume this means I am able to change the number of executors to 2.
What if it had been a single-core VM - how would the blocking work?

danny staple

unread,
Aug 15, 2011, 8:24:22 AM8/15/11
to jenkins...@googlegroups.com

You can add as many executors as you like. They don't represent cores. More like how much load you allow on the system.

typed on my phone expect typos...

Reply all
Reply to author
Forward
0 new messages