Sergey Otpuschennikov | aad1ae0 | 2020-09-11 19:33:51 +0400 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | - job-template: |
| 4 | name: infra.codenarc |
| 5 | id: common/codenarc |
| 6 | project-type: pipeline |
| 7 | description: Check groovy scripts by CodeNarc |
| 8 | concurrent: True |
| 9 | |
| 10 | properties: |
| 11 | - build-discarder: |
| 12 | days-to-keep: 14 |
| 13 | - inject: |
| 14 | properties-content: | |
| 15 | DOCKER_IMAGE=docker-prod-local.docker.mirantis.net/infra/codenarc:latest |
| 16 | K8S_CLUSTER={k8s_cluster} |
| 17 | NODE_LABEL={codenarc_node|docker} |
| 18 | GIT_CREDENTIALS_ID={git-credentials-id} |
| 19 | |
| 20 | |
| 21 | parameters: |
| 22 | - hidden: |
| 23 | name: DEFAULT_RULES |
| 24 | default: !include-raw-escape: ../../codenarcRules.groovy |
| 25 | |
| 26 | triggers: |
| 27 | - gerrit: |
| 28 | server-name: '{gerrit-server}' |
| 29 | projects: '{obj:projects}' |
| 30 | trigger-on: |
| 31 | - patchset-created-event: |
| 32 | exclude-drafts: True |
| 33 | custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}artifact/report.html' |
| 34 | skip-vote: |
| 35 | notbuilt: true |
| 36 | |
| 37 | dsl: !include-raw-escape: ../pipelines/codenarc.groovy |