summaryrefslogtreecommitdiffstats
path: root/jjb/integration/integration-templates.yaml
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2020-03-03 17:35:40 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-03 17:35:40 +0000
commit8c56aced3b96e2d902908f1de04bd76f477d4083 (patch)
treeeccc94b9879570a577fb55d73fdaaf260307b6a8 /jjb/integration/integration-templates.yaml
parentf088ef81120578eb06404250293794618a2d079a (diff)
parent4d77b8e9a97c3801e0cab422c23e2f134b950191 (diff)
Merge "Add linter job template/definition for integration repo"
Diffstat (limited to 'jjb/integration/integration-templates.yaml')
-rw-r--r--jjb/integration/integration-templates.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml
index 0adfae7a9..0cf19bcff 100644
--- a/jjb/integration/integration-templates.yaml
+++ b/jjb/integration/integration-templates.yaml
@@ -43,3 +43,56 @@
publishers:
- lf-infra-publish
+
+- job-template:
+ # Job template for running linters against specific file formats
+ #
+ # Required Variables:
+ # python-version: Python version to deploy in venv
+ # tox-env: Tox environments to run
+ # tox-dir: Directory containing the project's tox.ini
+ # pattern: List of file patterns to scan
+
+ name: '{project-name}-{stream}-{subproject}-lint'
+ project-type: freestyle
+ description: 'Job intended for running linters with Tox and Coala'
+ node: ubuntu1604-builder-2c-1g
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ - lf-infra-tox-parameters:
+ tox-dir: '{tox-dir}'
+ tox-envs: '{tox-envs}'
+
+ properties:
+ - infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ scm:
+ - gerrit-trigger-scm:
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+ submodule-recursive: '{submodule-recursive}'
+
+ wrappers:
+ - infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - gerrit-trigger-patch-submitted:
+ server: '{server-name}'
+ project: '{project}'
+ branch: '{branch}'
+ files: '{pattern}'
+
+ builders:
+ - lf-infra-tox-install:
+ python-version: '{python-version}'
+ - lf-infra-tox-run:
+ parallel: 'false'
+
+ publishers:
+ - lf-infra-publish