From f8f3050e32d642cd6e5f337eb41f70b8239ab3e8 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 11 Jan 2019 11:10:06 -0500 Subject: [PATCH] Add dco-license job This is a follow up to the previous commit, here we are adding a job called dco-license which only runs on localhost (zuul-executor). Change-Id: Id624160930b80b5b37a8e05b000106c16fef64e0 Signed-off-by: Paul Belanger --- playbooks/dco-license/run.yaml | 7 +++++++ zuul.yaml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 playbooks/dco-license/run.yaml diff --git a/playbooks/dco-license/run.yaml b/playbooks/dco-license/run.yaml new file mode 100644 index 000000000..7b47e54d2 --- /dev/null +++ b/playbooks/dco-license/run.yaml @@ -0,0 +1,7 @@ +- hosts: localhost + tasks: + - name: Run validate-dco-license role + include_role: + name: validate-dco-license + vars: + zuul_work_dir: "{{ zuul.executor.work_root }}/{{ zuul.project.src_dir }}" diff --git a/zuul.yaml b/zuul.yaml index c9aeb376f..761951e68 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -1,6 +1,14 @@ # Shared jobs that are generally applicable to everyone # Assumes a 'base' job defined elsewhere +- job: + name: dco-license + description: | + A job to validate all new commits have been signed using --signoff. + run: playbooks/dco-license/run.yaml + nodeset: + nodes: [] + - job: name: unittests abstract: true