Project

Profile

Help

Jenkins-job-builder markup

This page contains typical problems and solutions.

Intendation

Here is an example of correct idents:

- job:
    name: Build_jjb
    description: 'This job builds Maxscale'
    parameters:
      - !include: './maxscale_jobs/include/target_value.yaml'
      - choice:
          name: box
          choices:

Rule:
- four spaces under dash starting string
- two spaces after letter starting string

Include several elements from different files to ONE array

You have following array:

choices:
  - a
  - b

and you want to include elements (d, f, g) and (q, w, r) from two different files.

Solution:

choices:
  - !include: "./dfg.inc" 
  - !include: "./qwr.inc" 

dfg.inc

d
f
g

qwr.inc

q
w
r