summaryrefslogtreecommitdiff
path: root/tests/fixtures/layouts/soft-dependencies.yaml
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-03-06 08:46:19 -0800
committerJames E. Blair <jeblair@redhat.com>2019-03-07 13:21:22 -0800
commitdb3388688a5c0893b5b480579a8dd8905e6835b2 (patch)
tree4413a4ff4832445bfcfa0c0141f6572c58d22949 /tests/fixtures/layouts/soft-dependencies.yaml
parent967828b1f05a2676b1c06714add052108a9f3102 (diff)
downloadzuul-db3388688a5c0893b5b480579a8dd8905e6835b2.tar.gz
Allow soft job dependencies
A "soft" dependency can be used to indicate that a job must run after another completes, but only if it runs at all. For example, a deployment job which depends on a build job with different file matcher criteria. Change-Id: I4d7fc2b40942569323da273c4529fdb365a3b11a
Diffstat (limited to 'tests/fixtures/layouts/soft-dependencies.yaml')
-rw-r--r--tests/fixtures/layouts/soft-dependencies.yaml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fixtures/layouts/soft-dependencies.yaml b/tests/fixtures/layouts/soft-dependencies.yaml
new file mode 100644
index 000000000..714e5794d
--- /dev/null
+++ b/tests/fixtures/layouts/soft-dependencies.yaml
@@ -0,0 +1,34 @@
+- pipeline:
+ name: check
+ manager: independent
+ trigger:
+ gerrit:
+ - event: patchset-created
+ success:
+ gerrit:
+ Verified: 1
+ failure:
+ gerrit:
+ Verified: -1
+
+- job:
+ name: base
+ parent: null
+ run: playbooks/base.yaml
+
+- job:
+ name: build
+ files: main.c
+
+- job:
+ name: deploy
+
+- project:
+ name: org/project
+ check:
+ jobs:
+ - build
+ - deploy:
+ dependencies:
+ - name: build
+ soft: true