From 392f164806352efe0c5345202d10f810786dd17a Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Tue, 5 Feb 2019 11:10:33 +0100 Subject: [PATCH] Add DCO check to kata-prechecks Create pr-check pipeline that triggers on PR changes (not on label changes). Add the dco-license job to the kata-prechecks template. Change-Id: Iffd6689a2edb95df7d0d4ec6b8e378fc0de20b08 --- zuul.d/pipelines.yaml | 34 ++++++++++++++++++++++++++++++++++ zuul.d/project-templates.yaml | 3 +++ 2 files changed, 37 insertions(+) diff --git a/zuul.d/pipelines.yaml b/zuul.d/pipelines.yaml index 26594bb..3579960 100644 --- a/zuul.d/pipelines.yaml +++ b/zuul.d/pipelines.yaml @@ -89,6 +89,40 @@ window-floor: 20 window-increase-factor: 2 +- pipeline: + name: pr-check + description: | + New PRs and modified PRs enter this pipeline to be tested. + success-message: DCO (Signed-Off-By) is present. + failure-message: Missing DCO (Signed-Off-By) in commit message. + manager: independent + precedence: low + trigger: + github: + - event: pull_request + action: + - opened + - changed + - reopened + - event: pull_request + action: comment + comment: (?i)^\s*/zuul-recheck\s*$ + start: + github: + status: pending + comment: false + success: + github: + status: 'success' + mysql: + failure: + github: + status: 'failure' + mysql: + # Don't report merge-failures to github + merge-failure: + mysql: + - pipeline: name: pr-status description: | diff --git a/zuul.d/project-templates.yaml b/zuul.d/project-templates.yaml index 2f17ee4..bbd0d2d 100644 --- a/zuul.d/project-templates.yaml +++ b/zuul.d/project-templates.yaml @@ -3,6 +3,9 @@ description: | This template contains pre-check tests for Kata containers repositories. + pr-check: + jobs: + - dco-license pr-status: jobs: - kata-github-wip