Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 1 | --- |
| 2 | # CORD lint and static code validation job templates |
Zack Williams | 92f9b1f | 2018-04-11 09:58:49 -0700 | [diff] [blame] | 3 | # These are invoked by the per-git-repo jobs stored in verify/ |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 4 | |
| 5 | # Verify that there is valid license/copyright on files |
| 6 | - job-template: |
| 7 | id: verify-licensed |
Zack Williams | 92f9b1f | 2018-04-11 09:58:49 -0700 | [diff] [blame] | 8 | name: 'verify_{project}_licensed' |
| 9 | description: | |
Zack Williams | 92f9b1f | 2018-04-11 09:58:49 -0700 | [diff] [blame] | 10 | Created by verify-licensed job-template from ci-management/jjb/lint.yaml |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 11 | |
| 12 | triggers: |
| 13 | - cord-infra-gerrit-trigger-patchset: |
| 14 | gerrit-server-name: '{gerrit-server-name}' |
| 15 | project-regexp: '^{project}$' |
| 16 | branch-regexp: '{branch-regexp}' |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 17 | file-include-regexp: '{all-files-regexp}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 18 | dependency-jobs: '{dependency-jobs}' |
| 19 | |
| 20 | properties: |
| 21 | - cord-infra-properties: |
| 22 | build-days-to-keep: '{build-days-to-keep}' |
| 23 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 24 | |
| 25 | wrappers: |
| 26 | - lf-infra-wrappers: |
| 27 | build-timeout: '{build-timeout}' |
| 28 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 29 | |
| 30 | scm: |
| 31 | - lf-infra-gerrit-scm: |
| 32 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 33 | refspec: '$GERRIT_REFSPEC' |
| 34 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 35 | submodule-disable: '{submodule-disable}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 36 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 37 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 38 | choosing-strategy: gerrit |
| 39 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 40 | |
| 41 | node: '{build-node}' |
| 42 | project-type: freestyle |
| 43 | concurrent: true |
| 44 | |
| 45 | builders: |
| 46 | - shell: !include-raw-escape: shell/licensecheck.sh |
| 47 | |
| 48 | |
| 49 | # run `ansible-lint` to validate ansible playbooks/roles |
| 50 | - job-template: |
| 51 | id: verify-ansible-lint |
Zack Williams | 92f9b1f | 2018-04-11 09:58:49 -0700 | [diff] [blame] | 52 | name: 'verify_{project}_ansible-lint' |
| 53 | description: | |
Zack Williams | 92f9b1f | 2018-04-11 09:58:49 -0700 | [diff] [blame] | 54 | Created by verify-ansible-lint job-template from ci-management/jjb/lint.yaml |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 55 | |
| 56 | triggers: |
| 57 | - cord-infra-gerrit-trigger-patchset: |
| 58 | gerrit-server-name: '{gerrit-server-name}' |
| 59 | project-regexp: '^{project}$' |
| 60 | branch-regexp: '{branch-regexp}' |
Zack Williams | c27ca2d | 2018-04-11 13:16:45 -0700 | [diff] [blame] | 61 | file-include-regexp: '{all-files-regexp}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 62 | dependency-jobs: '{dependency-jobs}' |
| 63 | |
| 64 | properties: |
| 65 | - cord-infra-properties: |
| 66 | build-days-to-keep: '{build-days-to-keep}' |
| 67 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 68 | |
| 69 | wrappers: |
| 70 | - lf-infra-wrappers: |
| 71 | build-timeout: '{build-timeout}' |
| 72 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 73 | |
| 74 | scm: |
| 75 | - lf-infra-gerrit-scm: |
| 76 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 77 | refspec: '$GERRIT_REFSPEC' |
| 78 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 79 | submodule-disable: '{submodule-disable}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 80 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 81 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 82 | choosing-strategy: gerrit |
| 83 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 84 | |
| 85 | node: '{build-node}' |
| 86 | project-type: freestyle |
| 87 | concurrent: true |
| 88 | |
| 89 | builders: |
hwchiu | f4a77ce | 2019-09-06 17:15:21 -0700 | [diff] [blame] | 90 | - inject: |
| 91 | properties-content: | |
| 92 | SKIP_DIRS={skip-dirs} |
Zack Williams | 7468c36 | 2018-04-06 09:52:30 -0700 | [diff] [blame] | 93 | - shell: !include-raw-escape: shell/ansiblelint.sh |
| 94 | |
| 95 | |
Zack Williams | 32293ee | 2018-05-18 09:15:13 -0700 | [diff] [blame] | 96 | # run `shellcheck` to validate shell scripts charts |
| 97 | - job-template: |
| 98 | id: verify-shellcheck |
| 99 | name: 'verify_{project}_shellcheck' |
| 100 | description: | |
| 101 | Created by {id} job-template from ci-management/jjb/lint.yaml |
| 102 | |
| 103 | triggers: |
| 104 | - cord-infra-gerrit-trigger-patchset: |
| 105 | gerrit-server-name: '{gerrit-server-name}' |
| 106 | project-regexp: '^{project}$' |
| 107 | branch-regexp: '{branch-regexp}' |
| 108 | file-include-regexp: '{all-files-regexp}' |
| 109 | dependency-jobs: '{dependency-jobs}' |
| 110 | |
| 111 | properties: |
| 112 | - cord-infra-properties: |
| 113 | build-days-to-keep: '{build-days-to-keep}' |
| 114 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 115 | |
| 116 | wrappers: |
| 117 | - lf-infra-wrappers: |
| 118 | build-timeout: '{build-timeout}' |
| 119 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 120 | |
| 121 | scm: |
| 122 | - lf-infra-gerrit-scm: |
| 123 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 124 | refspec: '$GERRIT_REFSPEC' |
| 125 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 126 | submodule-disable: '{submodule-disable}' |
Zack Williams | 32293ee | 2018-05-18 09:15:13 -0700 | [diff] [blame] | 127 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 128 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 32293ee | 2018-05-18 09:15:13 -0700 | [diff] [blame] | 129 | choosing-strategy: gerrit |
| 130 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 131 | |
| 132 | node: '{build-node}' |
| 133 | project-type: freestyle |
| 134 | concurrent: true |
| 135 | |
| 136 | builders: |
| 137 | - shell: !include-raw-escape: shell/shcheck.sh |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 138 | |
| 139 | # [EOF] |