Matrix ProjectΒΆ

The matrix project module handles creating Jenkins matrix projects. To create a matrix project specify matrix in the project-type attribute to the Job definition. Currently it only supports label expression axes.

Job Parameters:
  • execution-strategy (optional):
    • combination-filter (str): axes selection filter

    • sequential (bool): run builds sequentially (default false)

    • touchstone (optional):
      • expr (str) – selection filter for the touchstone build
      • result (str) – required result of the job: stable (default) or unstable
  • axes (list):
    • axis:
      • type (str) – axis type, must be ‘label-expression’
      • name (str) – name of the axis
      • values (list) – values of the axis

Example:

- job:
   name: matrix-test
   project-type: matrix
   execution-strategy:
     combination-filter: |
       !(os=="fedora11" && arch=="amd64")
     sequential: true
     touchstone:
       expr: 'os == "fedora11"'
       result: unstable
   axes:
     - axis:
        type: label-expression
        name: os
        values:
         - ubuntu12.04
         - fedora11
     - axis:
        type: label-expression
        name: arch
        values:
         - amd64
         - i386
   builders:
     - shell: make && make check

Previous topic

Maven Project

Next topic

General Job Configuration

This Page