diff options
author | Tobias Henkel <tobias.henkel@bmw.de> | 2018-07-23 16:32:11 +0200 |
---|---|---|
committer | Tobias Henkel <tobias.henkel@bmw.de> | 2018-08-09 10:07:34 +0200 |
commit | b2451becaf3eb238cc06a98eae91f3320aec3dbb (patch) | |
tree | 2f1253bbaef55ade62fa412523d3cdaee1302574 /releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml | |
parent | 4cb9932a4ff35068be53ee66e2d438172c6cd138 (diff) | |
download | zuul-b2451becaf3eb238cc06a98eae91f3320aec3dbb.tar.gz |
Support job pause
There are some use cases where it would be very useful to have some
resources that stay during the livetime of the buildset. E.g.:
* Spinning up a docker registry for child jobs that automatically gets
cleaned up after a test run.
* Efficiently caching intermediate build results that are needed in
child jobs without needing and overloading a central system for
this.
In order to provide this functionality a job now can pause itself
after the run phase and let its children run. After all children are
finished it will be resumed. This can be easily triggered in a job by
using the zuul_return module together with the ability to forward any
data via ansible variables to the children.
- name: Pause job
zuul_return:
data:
zuul:
pause: true
registry_ip: "{{ hostvars[groups.all[0]].ansible_host }}"
Change-Id: I1a078bf22b9d3f9a33bd1517e73234749932e1bf
Diffstat (limited to 'releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml')
-rw-r--r-- | releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml b/releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml new file mode 100644 index 000000000..a73c2cc5b --- /dev/null +++ b/releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + A job now can pause itself using :ref:`return_values` and let the child jobs + run until they are finished. This can be used to serve some service which + can be used by the child jobs. |