From cb2a4f34df19398c2800beca0d8723ad4f0d2573 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Thu, 13 Aug 2020 18:49:28 -0400 Subject: Add Lint process to Kuberef Lint tools allow to check syntax errors and verify best practices on coding. This change includes a Jenkins Job for running those tools on every change submitted. Signed-off-by: Victor Morales Change-Id: I0a4a5378a8e75322993be049b961886d5595c0db --- jjb/kuberef/kuberef-verify-jobs.yaml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 jjb/kuberef/kuberef-verify-jobs.yaml (limited to 'jjb/kuberef/kuberef-verify-jobs.yaml') diff --git a/jjb/kuberef/kuberef-verify-jobs.yaml b/jjb/kuberef/kuberef-verify-jobs.yaml new file mode 100644 index 000000000..dfe6d7276 --- /dev/null +++ b/jjb/kuberef/kuberef-verify-jobs.yaml @@ -0,0 +1,51 @@ +--- +- project: + name: kuberef-verify + project: kuberef + stream: + - master: + branch: '{stream}' + jobs: + - '{project}-verify-lint-{stream}' + +- job-template: + name: '{project}-verify-lint-{stream}' + scm: + - kuberef-project-scm + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - patchset-created-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + projects: + - project-compare-type: 'ANT' + project-pattern: 'kuberef' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: false + failed: false + unstable: false + notbuilt: false + builders: + - kubref-run-linting + +- scm: + name: kuberef-project-scm + scm: + - git: + url: https://gerrit.opnfv.org/gerrit/kuberef + refspec: '+refs/changes/*:refs/changes/*' + branches: + - '{ref}' + +- builder: + name: kubref-run-linting + builders: + - shell: + !include-raw: ./kuberef-run-linting.sh -- cgit 1.2.3-korg