Builders

Builders define actions that the Jenkins job should execute. Examples include shell scripts or maven targets. The builders attribute in the Job definition accepts a list of builders to invoke. They may be components defined below, locally defined macros (using the top level definition of builder:, or locally defined components found via the jenkins_jobs.builders entry point.

Component: builders
Macro

builder

Entry Point

jenkins_jobs.builders

Example:

job:
  name: test_job

  builders:
    - shell: "make test"
class builders.Builders(registry)
gen_xml(xml_parent, data)

Update the XML element tree based on YAML data. Override this method to add elements to the XML output. Create new Element objects and add them to the xml_parent. The YAML data structure must not be modified.

Parameters
  • parser (YAMLParser) – the global YAML Parser

  • xml_parent (Element) – the parent XML element

  • data (dict) – the YAML data structure