+++ /dev/null
----
-repos:
- - repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v1.3.0
- hooks:
- - id: trailing-whitespace
required:
- 'project'
- - 'version'
- 'project_creation_date'
- 'project_category'
- 'lifecycle_state'
To use this create a managed file in Jenkins with the contents:
#!/bin/bash
- git clone https://gerrit.example.org/r/ci-management.git /opt/ciman
+ git clone --recurse-submodules https://gerrit.example.org/r/ci-management.git /opt/ciman
/opt/ciman/jjb/global-jjb/jenkins-init-scripts/init.sh
pattern: '.*\.groovy'
- compare-type: REG_EXP
pattern: '.*\.sh'
+ - compare-type: REG_EXP
+ pattern: '.*\.bat'
+ - compare-type: REG_EXP
+ pattern: '.*\.ps1'
- compare-type: REG_EXP
pattern: '.*\.(yaml|yml)'
- compare-type: REG_EXP
github_included_regions:
- '.*\.groovy'
- '.*\.sh'
+ - '.*\.bat'
+ - '.*\.ps1'
- '.*\.(yaml|yml)'
- '.*\/global-jjb'
file-paths:
- compare-type: REG_EXP
pattern: 'packer\/provision\/.*\.sh'
+ - compare-type: REG_EXP
+ pattern: 'packer\/provision\/.*\.bat'
+ - compare-type: REG_EXP
+ pattern: 'packer\/provision\/.*\.ps1'
- compare-type: REG_EXP
pattern: 'packer\/provision\/{templates}\.yaml'
- compare-type: REG_EXP
# included-regions MUST match Gerrit Trigger file-paths
included-regions:
- 'packer\/provision\/.*\.sh'
+ - 'packer\/provision\/.*\.bat'
+ - 'packer\/provision\/.*\.ps1'
- 'packer\/provision\/{templates}\.yaml'
- 'packer\/provision\/local-{templates}\.yaml'
- 'packer\/templates\/{templates}\.json'
builders:
- inject:
properties-content: |
- PROJECT='{project}'
- GERRIT_COMMIT_MESSAGE='{gerrit-commit-message}'
- GERRIT_HOST='{gerrit-host}'
- GERRIT_TOPIC='{gerrit-topic}'
- GERRIT_USER='{gerrit-user}'
- REVIEWERS_EMAIL='{reviewers-email}'
+ PROJECT={project}
+ GERRIT_COMMIT_MESSAGE={gerrit-commit-message}
+ GERRIT_HOST={gerrit-host}
+ GERRIT_TOPIC={gerrit-topic}
+ GERRIT_USER={gerrit-user}
+ REVIEWERS_EMAIL={reviewers-email}
- shell: !include-raw-escape: ../shell/gerrit-push-patch.sh
- builder:
- lf-infra-tox-parameters:
tox-dir: '{tox-dir}'
tox-envs: '{tox-envs}'
+ - bool:
+ name: PARALLEL
+ default: '{parallel}'
+ description: Tox test type used to configure serial or parallel testing.
wrappers:
- lf-infra-wrappers:
submodule-recursive: '{submodule-recursive}'
choosing-strategy: gerrit
- parameters:
- - bool:
- name: PARALLEL
- default: '{parallel}'
- description: Tox test type used to configure serial or parallel testing.
-
-
triggers:
- gerrit:
server-name: '{gerrit-server-name}'
[tox]
minversion = 1.6
-envlist = check-hooks,coala,jjb,jjb-compare-xml,license
+envlist = coala,jjb,jjb-compare-xml,license
skipsdist = true
-[testenv:check-hooks]
-deps = pre-commit
-commands =
- pre-commit install
- pre-commit run --all-files
-
[testenv:coala]
basepython = python3
deps =