blob: eb5b34156103c230b30bf5638771ab75b30014cf [file] [log] [blame]
---
- job-template:
name: infra.yamllint
id: common/yamllint
project-type: pipeline
description: Check yaml files by yamllint.
concurrent: True
properties:
- build-discarder:
days-to-keep: 14
- inject:
properties-content: |
K8S_CLUSTER={k8s_cluster}
DOCKER_IMAGE={docker-dev-virtual}/mirantis/openstack-ci/jenkins-job-tests:latest
NODE_LABEL={yamllint_node|docker}
GIT_CREDENTIALS_ID={git-credentials-id}
triggers:
- gerrit:
server-name: '{gerrit-server}'
projects: '{obj:projects}'
trigger-on:
- patchset-created-event:
exclude-drafts: True
custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}console'
skip-vote: '{obj:skip_vote}'
dsl: !include-raw-escape: ../pipelines/yamllint.groovy