blob: 4843314ca472059871f7bfc783a2c95cd7882e70 [file] [log] [blame]
---
- job-template:
name: infra.codenarc
id: common/codenarc
project-type: pipeline
description: Check groovy scripts by CodeNarc
concurrent: True
properties:
- build-discarder:
days-to-keep: 14
- inject:
properties-content: |
DOCKER_IMAGE=docker-prod-local.docker.mirantis.net/infra/codenarc:latest
K8S_CLUSTER={k8s_cluster}
NODE_LABEL={codenarc_node|docker}
GIT_CREDENTIALS_ID={git-credentials-id}
parameters:
- hidden:
name: DEFAULT_RULES
default: !include-raw-escape: ../../codenarcRules.groovy
triggers:
- gerrit:
server-name: '{gerrit-server}'
projects: '{obj:projects}'
trigger-on:
- patchset-created-event:
exclude-drafts: True
custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}artifact/report.html'
skip-vote:
notbuilt: true
dsl: !include-raw-escape: ../pipelines/codenarc.groovy