blob: eb5b34156103c230b30bf5638771ab75b30014cf [file] [log] [blame]
Sergey Otpuschennikovaad1ae02020-09-11 19:33:51 +04001---
2- job-template:
3 name: infra.yamllint
4 id: common/yamllint
5 project-type: pipeline
6 description: Check yaml files by yamllint.
7 concurrent: True
8
9 properties:
10 - build-discarder:
11 days-to-keep: 14
12 - inject:
13 properties-content: |
14 K8S_CLUSTER={k8s_cluster}
15 DOCKER_IMAGE={docker-dev-virtual}/mirantis/openstack-ci/jenkins-job-tests:latest
16 NODE_LABEL={yamllint_node|docker}
17 GIT_CREDENTIALS_ID={git-credentials-id}
18
19 triggers:
20 - gerrit:
21 server-name: '{gerrit-server}'
22 projects: '{obj:projects}'
23 trigger-on:
24 - patchset-created-event:
25 exclude-drafts: True
26 custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}console'
27 skip-vote: '{obj:skip_vote}'
28
29 dsl: !include-raw-escape: ../pipelines/yamllint.groovy