Merge "Move project matrix documentation into a test."

This commit is contained in:
Jenkins
2015-03-05 15:50:40 +00:00
committed by Gerrit Code Review
3 changed files with 116 additions and 53 deletions

View File

@@ -61,60 +61,10 @@ Example:
Requires the Jenkins :jenkins-wiki:`ShiningPanda Plugin <ShiningPanda+Plugin>`.
Example::
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
- axis:
type: slave
name: nodes
values:
- node1
- node2
- axis:
type: dynamic
name: config
values:
- config_list
builders:
- shell: make && make check
Example using user-defined axis::
- job:
name: matrix-user-defined
project-type: matrix
axes:
- axis:
type: user-defined
name: database
values:
- mysql
- postgresql
- sqlite
builders:
- shell: make "$database"
.. literalinclude:: /../../tests/yamlparser/fixtures/project-matrix001.yaml
:language: yaml
"""