Files
zuul/releasenotes/notes/job-pause-868192a2ee4cf7a9.yaml
T
Tobias Henkel b2451becaf 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
2018-08-09 10:07:34 +02:00

7 lines
214 B
YAML

---
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.