On Thu, Dec 11, 2014 at 2:04 PM, Craig Silverstein
<[email protected]> wrote:
> Is it possible to run an existing jenkins job from a workflow groovy script?  
> I saw mention elsewhere of a 'build' step

That is it.

> don't see it mentioned in the tutorial.

Indeed not all features are mentioned in the tutorial, which is why it
advises you to use the Snippet Generator to explore further.

(Whether this step is important for a broad enough class of users to
merit direct mention is another question. Newly written flows can
probably do without it, but it can be useful when migrating existing
setups.)

> we also want the
> behavior that if and when build-artifacts fails, it immediately cancels the
> running tests and fails the deploy job; and likewise if the tests fail, it
> immediately cancels the building of artifacts and fails the deploy job.  If
> both succeed, then the deploy job continues.

I do not think flows should be writing such code directly. Probably
this should just be an option for the parallel step (or even the
standard behavior). Feel free to file it as an RFE.

> the ability to start a job in the background and poll it periodically to see 
> how it's doing.

Do you have other use cases for such a feature, besides just making
parallel fail early?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3qdLTWFn6XCQ0oPEnbXs700KP--PUaTN-pMEoDwDfn%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to