Zuul

The Zuul module adds jobs parameters to manually run a build as Zuul would have. It is entirely optional, Zuul 2.0+ pass the parameters over Gearman.

class zuul.Zuul(registry)
amend_job_dict(job)

This method is called before any XML is generated. By overriding this method, a module may arbitrarily modify a job data structure which will probably be the JJB Job intermediate data dict representation. If it has changed the data structure at all, it must return True, otherwise, it must return False.

Parameters:

job (dict) – the intermediate representation of job data loaded from JJB Yaml files after variables interpolation and other yaml expansions.

Return type:

bool

sequence = 0

The sequence number for the module. Modules are invoked in the order of their sequence number in order to produce consistently ordered XML output.

zuul()

Configure this job to be triggered by Zuul.

Adds parameters describing the change triggering the build such as the branch name, change number and patchset.

See parameters expected by Zuul.

Example:

triggers:
  - zuul
zuul-post()

Configure this post-merge job to be triggered by Zuul.

Adds parameters describing the reference update triggering the build, which are the previous and next revisions in full (40 hexadecimal sha1) and short form.

See parameters expected by Zuul.

Example:

triggers:
  - zuul-post