summaryrefslogtreecommitdiffstats
path: root/tests/yamlparser/fixtures/project-matrix002.yaml
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2016-05-30 21:54:18 +0200
committerAntoine Musso <hashar@free.fr>2017-06-22 17:07:35 +0200
commit20cf8d5e705fa068b434bb0f7f91514285cba741 (patch)
treebd8d61c59ce6cb4d1742ddddc50c59da1e73011d /tests/yamlparser/fixtures/project-matrix002.yaml
parent7b1c47711dd0bcf61be829ccbf9e8cfdf9dd98d9 (diff)
downloadpython-jenkins-job-builder-20cf8d5e705fa068b434bb0f7f91514285cba741.tar.gz
python-jenkins-job-builder-20cf8d5e705fa068b434bb0f7f91514285cba741.tar.xz
python-jenkins-job-builder-20cf8d5e705fa068b434bb0f7f91514285cba741.zip
project matrix: rename variable/refactor
While reviewing the YAML axis execution strategy for the matrix project, Darragh Bailey suggested to: * use proper variable naming * JJB exceptions * Rely on hudson_model * Drop trailing slashes Slightly refactor the matrix project method. For the combination touchstones, the web interface list the result has 'Stable', 'Unstable'. Map 'Stable' to 'Success' which is actually in hudson.model.Result. Add a basic test to cover that. Change-Id: I7ab416a2dbadae6d8a41fe8902ebec04fc530abc
Diffstat (limited to 'tests/yamlparser/fixtures/project-matrix002.yaml')
-rw-r--r--tests/yamlparser/fixtures/project-matrix002.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/yamlparser/fixtures/project-matrix002.yaml b/tests/yamlparser/fixtures/project-matrix002.yaml
new file mode 100644
index 00000000..23ec7e08
--- /dev/null
+++ b/tests/yamlparser/fixtures/project-matrix002.yaml
@@ -0,0 +1,7 @@
+- job:
+ name: matrix-test-stable
+ project-type: matrix
+ execution-strategy:
+ touchstone:
+ expr: 'os == "linux"'
+ result: stable