Jenkinsfile and async / parallel tasks

59 views
Skip to first unread message

Nigel Magnay

unread,
Feb 20, 2018, 6:00:42 AM2/20/18
to jenkin...@googlegroups.com
I have a project with a Jenkinsfile that changes a number of stages depending on whether it's a normal build, a nightly build, or a pull-request build.

As such, it's quite difficult therefore to declare which stages can be run in parallel, as in some cases it's not clear there's anything 'parallel' to be done or - worse - there is work that could be going on in parallel that is stoppped because it's in a different 'parallel' block. I'm ending up hacking the Jenkinsfile 'parallel' declarations to try to get the maximum degree of parallelism (nee - shortest build time)

What I really want to be able to do is say "here's a stage, and it can be run when <this condition> is satisfied, but get on with everything else until it's ready. I.E: a pause, asynchronous task.

Is there any good idea for things like this?




Baptiste Mathus

unread,
Feb 20, 2018, 8:43:56 AM2/20/18
to Jenkins Developers
Declarative's when block, IIUC.

(Note: more a thread for the users list if we don't head over implementing something in a plugin or so).

--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPYP83QFFVG1VLe3cRi0g8jwycUOhWwC2Lo9ewSJwC8osW7org%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages