Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 1 | --- |
| 2 | # Global macros |
| 3 | |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 4 | # vim: sw=2 ts=2 sts=2 et : |
| 5 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 6 | # BUILDERS |
| 7 | - builder: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 8 | name: provide-maven-settings |
| 9 | builders: |
| 10 | - config-file-provider: |
| 11 | files: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 12 | - file-id: "{global-settings-file}" |
| 13 | variable: "GLOBAL_SETTINGS_FILE" |
| 14 | - file-id: "{settings-file}" |
| 15 | variable: "SETTINGS_FILE" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 16 | |
Andrew Grimberg | 3aaa7d4 | 2017-02-24 12:51:11 -0800 | [diff] [blame] | 17 | # call maven-target builder with a goal of --version to force Jenkins to |
| 18 | # install the needed maven version |
| 19 | - builder: |
| 20 | name: maven-install |
| 21 | builders: |
| 22 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 23 | maven-version: "{maven-version}" |
| 24 | goals: "--version" |
Andrew Grimberg | 3aaa7d4 | 2017-02-24 12:51:11 -0800 | [diff] [blame] | 25 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 26 | - builder: |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 27 | name: maven-set-release-version |
| 28 | builders: |
| 29 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 30 | maven-version: "{maven-version}" |
| 31 | pom: "{pom}" |
| 32 | goals: "versions:set versions:update-child-modules versions:commit -B" |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 33 | properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 34 | - "newVersion=${{release_version}}" |
| 35 | settings: "{mvn-settings}" |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 36 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 37 | global-settings: "global-settings" |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 38 | global-settings-type: cfp |
| 39 | |
| 40 | - builder: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 41 | name: maven-docker-push-release |
| 42 | builders: |
| 43 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 44 | maven-version: "{maven-version}" |
| 45 | pom: "{pom}" |
| 46 | goals: "clean deploy -B -P {mvn-profile}" |
| 47 | settings: "{mvn-settings}" |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 48 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 49 | global-settings: "global-settings" |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 50 | global-settings-type: cfp |
| 51 | properties: |
| 52 | - maven.test.skip=true |
Jeremy Phelps | 48028ab | 2017-03-28 15:38:24 -0500 | [diff] [blame] | 53 | - docker.pull.registry=nexus3.onap.org:10001 |
| 54 | - docker.push.registry=nexus3.onap.org:10002 |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 55 | |
| 56 | - builder: |
| 57 | name: maven-docker-push-daily |
| 58 | builders: |
| 59 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 60 | maven-version: "{maven-version}" |
| 61 | pom: "{pom}" |
| 62 | goals: "clean deploy -B -P {mvn-profile} {mvn-params}" |
| 63 | settings: "{mvn-settings}" |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 64 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 65 | global-settings: "global-settings" |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 66 | global-settings-type: cfp |
| 67 | properties: |
Jeremy Phelps | 48028ab | 2017-03-28 15:38:24 -0500 | [diff] [blame] | 68 | - docker.pull.registry=nexus3.onap.org:10001 |
| 69 | - docker.push.registry=nexus3.onap.org:10003 |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 70 | |
Anaël Closson | 63e090e | 2017-02-15 14:50:45 +0100 | [diff] [blame] | 71 | - builder: |
| 72 | name: docker-login |
| 73 | builders: |
| 74 | - shell: !include-raw: include-docker-login.sh |
| 75 | |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 76 | - builder: |
| 77 | name: publish-pypi |
| 78 | builders: |
| 79 | - inject: |
| 80 | properties-content: PYPI_SERVER={pypi-server} |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 81 | - shell: !include-raw-escape: ../shell/pypi-publish.sh |
Vanessa Rene Valderrama | 295975d | 2018-02-27 15:10:17 -0800 | [diff] [blame] | 82 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 83 | # PARAMETERS |
| 84 | - parameter: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 85 | name: infra-parameters |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 86 | parameters: |
| 87 | - string: |
| 88 | name: PROJECT |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 89 | default: "{project}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 90 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 91 | description: "JJB configured PROJECT parameter to identify a Gerrit project" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 92 | # yamllint enable |
| 93 | - string: |
| 94 | name: ARCHIVE_ARTIFACTS |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 95 | default: "{artifacts} **/target/surefire-reports/*-output.txt" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 96 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 97 | description: "Space separated glob patterns for artifacts to archive to logs hosting" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 98 | # yamllint enable |
| 99 | - string: |
| 100 | name: GERRIT_BRANCH |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 101 | default: "{branch}" |
| 102 | description: "JJB configured GERRIT_BRANCH parameter" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 103 | - string: |
| 104 | name: GERRIT_PROJECT |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 105 | default: "{project}" |
| 106 | description: "GERRIT_PROJECT parameter if not given by trigger" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 107 | - string: |
| 108 | name: GERRIT_REFSPEC |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 109 | default: "{refspec}" |
| 110 | description: "GERRIT_REFSPEC parameter if not given by trigger" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 111 | - string: |
| 112 | name: STACK_NAME |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 113 | default: "$JOB_NAME-$BUILD_NUMBER" |
| 114 | description: "Used by Heat to generate a unique stack & vm name" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 115 | |
| 116 | - parameter: |
Jessica Wagantall | d25908c | 2018-03-28 12:06:39 -0700 | [diff] [blame] | 117 | name: maven-params |
| 118 | parameters: |
| 119 | - string: |
| 120 | name: MAVEN_PARAMS |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 121 | default: "{mvn-params}" |
Jessica Wagantall | d25908c | 2018-03-28 12:06:39 -0700 | [diff] [blame] | 122 | description: Maven parameters to pass to the mvn command. |
| 123 | |
| 124 | - parameter: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 125 | name: maven-exec |
| 126 | parameters: |
| 127 | - string: |
| 128 | name: MVN |
| 129 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 130 | default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 131 | # yamllint enable |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 132 | description: "Maven selector to be used by shell scripts" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 133 | |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 134 | - parameter: |
| 135 | name: docker-image-name |
| 136 | parameters: |
| 137 | - string: |
| 138 | name: DOCKER_IMAGE_NAME |
| 139 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 140 | default: "{docker-image-name}" |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 141 | # yamllint enable |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 142 | description: "Docker image name, e.g. onap/appc" |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 143 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 144 | # PROPERTIES |
| 145 | - property: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 146 | name: infra-properties |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 147 | properties: |
| 148 | - build-discarder: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 149 | days-to-keep: "{build-days-to-keep}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 150 | num-to-keep: 40 |
| 151 | artifact-days-to-keep: -1 |
| 152 | artifact-num-to-keep: 5 |
| 153 | |
| 154 | # PUBLISHERS |
| 155 | - publisher: |
| 156 | name: archive-artifacts |
| 157 | publishers: |
| 158 | - archive: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 159 | artifacts: "{artifacts}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 160 | allow-empty: true |
| 161 | fingerprint: true |
| 162 | latest-only: true |
| 163 | |
| 164 | - publisher: |
| 165 | name: email-notification |
| 166 | publishers: |
| 167 | - email-ext: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 168 | recipients: "nobody@open-o.org" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 169 | reply-to: |
| 170 | content-type: default |
| 171 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 172 | subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 173 | # yamllint enable |
| 174 | body: | |
| 175 | $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: |
| 176 | |
| 177 | Check console output at $BUILD_URL to view the results. |
| 178 | unstable: true |
| 179 | fixed: true |
| 180 | send-to: |
| 181 | - developers |
| 182 | - recipients |
| 183 | |
| 184 | - publisher: |
| 185 | name: jacoco-report |
| 186 | publishers: |
| 187 | - jacoco: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 188 | exec-pattern: "**/**.exec" |
| 189 | class-pattern: "**/classes" |
| 190 | source-pattern: "**/src/main/java" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 191 | # yamllint disable rule:line-length |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 192 | exclusion-pattern: "**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 193 | # yamllint enable |
| 194 | status-update: true |
| 195 | targets: |
| 196 | - branch: |
| 197 | healthy: 10 |
| 198 | unhealthy: 20 |
| 199 | - method: |
| 200 | healthy: 50 |
| 201 | unhealthy: 40 |
| 202 | |
| 203 | - publisher: |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 204 | name: checkstyle-result |
| 205 | publishers: |
| 206 | - checkstyle: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 207 | pattern: "**/checkstyle-result.xml" |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 208 | healthy: 0 |
| 209 | unhealthy: 100 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 210 | health-threshold: "high" |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 211 | thresholds: |
| 212 | unstable: |
| 213 | total-all: 30 |
| 214 | total-high: 15 |
| 215 | total-normal: 20 |
| 216 | total-low: 25 |
| 217 | new-all: 5 |
| 218 | new-high: 0 |
| 219 | new-normal: 2 |
| 220 | new-low: 5 |
| 221 | |
| 222 | - publisher: |
| 223 | name: checkstyle-result-daily |
| 224 | publishers: |
| 225 | - checkstyle: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 226 | pattern: "**/checkstyle-result.xml" |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 227 | healthy: 0 |
| 228 | unhealthy: 100 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 229 | health-threshold: "high" |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 230 | thresholds: |
| 231 | unstable: |
| 232 | total-all: 30 |
| 233 | total-high: 15 |
| 234 | total-normal: 20 |
| 235 | total-low: 25 |
| 236 | new-all: 1 |
| 237 | new-high: 0 |
| 238 | new-normal: 1 |
| 239 | new-low: 1 |
| 240 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 241 | # SCMS |
| 242 | - scm: |
| 243 | name: git-scm |
| 244 | scm: |
| 245 | - git: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 246 | credentials-id: "onap-jenkins-ssh" |
| 247 | url: "$GIT_BASE" |
| 248 | refspec: "" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 249 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 250 | - "origin/{branch}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 251 | skip-tag: true |
| 252 | wipe-workspace: true |
| 253 | timeout: 30 |
| 254 | |
| 255 | - scm: |
| 256 | name: gerrit-trigger-scm |
| 257 | scm: |
| 258 | - git: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 259 | credentials-id: "onap-jenkins-ssh" |
| 260 | url: "$GIT_BASE" |
| 261 | refspec: "{refspec}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 262 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 263 | - "origin/$GERRIT_BRANCH" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 264 | skip-tag: true |
| 265 | timeout: 30 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 266 | choosing-strategy: "{choosing-strategy}" |
Jeremy Phelps | 2c76e49 | 2017-07-12 13:45:40 -0500 | [diff] [blame] | 267 | submodule: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 268 | recursive: "{submodule-recursive}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 269 | |
| 270 | - scm: |
| 271 | name: gerrit-trigger-scm-basedir |
| 272 | scm: |
| 273 | - git: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 274 | credentials-id: "onap-jenkins-ssh" |
| 275 | url: "$GIT_BASE" |
| 276 | refspec: "{refspec}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 277 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 278 | - "origin/$GERRIT_BRANCH" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 279 | skip-tag: true |
| 280 | timeout: 30 |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 281 | choosing-strategy: "{choosing-strategy}" |
| 282 | basedir: "{basedir}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 283 | |
| 284 | - scm: |
| 285 | name: git-branch-scm |
| 286 | scm: |
| 287 | - git: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 288 | credentials-id: "onap-jenkins-ssh" |
| 289 | url: "$GIT_BASE" |
| 290 | refspec: "" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 291 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 292 | - "origin/{branch}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 293 | skip-tag: true |
| 294 | timeout: 30 |
| 295 | wipe-workspace: true |
| 296 | |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 297 | - scm: |
| 298 | name: git-extra-project |
| 299 | scm: |
| 300 | - git: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 301 | credentials-id: "onap-jenkins-ssh" |
| 302 | url: "$GIT_NO_PROJECT/{project}" |
| 303 | refspec: "{refspec}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 304 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 305 | - "origin/{branch}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 306 | skip-tag: true |
| 307 | timeoute: 30 |
| 308 | wipe-workspace: false |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 309 | basedir: "{checkout-dir}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 310 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 311 | # TRIGGERS |
| 312 | |
| 313 | # This is a single macro to use for all jobs who vote on every (relevant) patch |
| 314 | # set. Only 'recheck' trigger word is supported, it always triggers the full set |
| 315 | # of relevant jobs, in order to prevent Jenkins from starting only a subset and |
| 316 | # still voting Verified+1 |
| 317 | # Arguments: |
| 318 | # server: name of gerrit server to listen to |
| 319 | # project: pattern to match triggering projects |
| 320 | # branch: triggering branch name |
| 321 | # files: pattern to match triggering filepaths |
| 322 | - trigger: |
| 323 | name: gerrit-trigger-patch-submitted |
| 324 | triggers: |
| 325 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 326 | server-name: "{server}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 327 | trigger-on: |
| 328 | - patchset-created-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 329 | exclude-drafts: "false" |
| 330 | exclude-trivial-rebase: "false" |
| 331 | exclude-no-code-change: "false" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 332 | - draft-published-event |
| 333 | - comment-added-contains-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 334 | comment-contains-value: "recheck" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 335 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 336 | - project-compare-type: "ANT" |
| 337 | project-pattern: "{project}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 338 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 339 | - branch-compare-type: "ANT" |
| 340 | branch-pattern: "**/{branch}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 341 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 342 | - compare-type: "ANT" |
| 343 | pattern: "{files}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 344 | |
| 345 | - trigger: |
| 346 | name: gerrit-trigger-patch-merged |
| 347 | triggers: |
| 348 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 349 | server-name: "{server}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 350 | trigger-on: |
| 351 | - change-merged-event |
| 352 | - comment-added-contains-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 353 | comment-contains-value: "remerge" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 354 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 355 | - project-compare-type: "ANT" |
| 356 | project-pattern: "{project}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 357 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 358 | - branch-compare-type: "ANT" |
| 359 | branch-pattern: "**/{branch}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 360 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 361 | - compare-type: "ANT" |
| 362 | pattern: "{files}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 363 | |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 364 | - trigger: |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 365 | name: gerrit-trigger-helm-patch-submitted |
| 366 | triggers: |
| 367 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 368 | server-name: "{server}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 369 | trigger-on: |
| 370 | - patchset-created-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 371 | exclude-drafts: "false" |
| 372 | exclude-no-code-change: "false" |
| 373 | exclude-trivial-rebase: "false" |
| 374 | exclude-wip: "true" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 375 | - draft-published-event |
| 376 | - comment-added-contains-event: |
Jessica Wagantall | 65198c8 | 2020-03-24 09:57:03 -0700 | [diff] [blame] | 377 | comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify|verify-helm)\s*$' |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 378 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 379 | - project-compare-type: "ANT" |
| 380 | project-pattern: "{project}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 381 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 382 | - branch-compare-type: "ANT" |
| 383 | branch-pattern: "**/{branch}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 384 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 385 | - compare-type: "ANT" |
| 386 | pattern: "{files}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 387 | |
| 388 | - trigger: |
| 389 | name: gerrit-trigger-helm-patch-merged |
| 390 | triggers: |
| 391 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 392 | server-name: "{server}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 393 | trigger-on: |
| 394 | - change-merged-event |
| 395 | - comment-added-contains-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 396 | comment-contains-value: "^remerge-helm$" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 397 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 398 | - project-compare-type: "ANT" |
| 399 | project-pattern: "{project}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 400 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 401 | - branch-compare-type: "ANT" |
| 402 | branch-pattern: "**/{branch}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 403 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 404 | - compare-type: "ANT" |
| 405 | pattern: "{files}" |
Jeremy Phelps | d73b214 | 2018-08-27 15:26:11 -0500 | [diff] [blame] | 406 | |
| 407 | - trigger: |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 408 | name: gerrit-trigger-release-manually |
| 409 | triggers: |
| 410 | - gerrit: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 411 | server-name: "{server}" |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 412 | trigger-on: |
| 413 | - comment-added-contains-event: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 414 | comment-contains-value: "please release" |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 415 | projects: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 416 | - project-compare-type: "ANT" |
| 417 | project-pattern: "{project}" |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 418 | branches: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 419 | - branch-compare-type: "ANT" |
| 420 | branch-pattern: "**/{branch}" |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 421 | file-paths: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 422 | - compare-type: "ANT" |
| 423 | pattern: "**" |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 424 | |
Anaël Closson | adcb39d | 2017-03-10 15:39:09 +0100 | [diff] [blame] | 425 | - trigger: |
| 426 | name: trigger-on-build-success |
| 427 | triggers: |
Anaël Closson | 41ddffd | 2017-03-13 13:39:57 +0100 | [diff] [blame] | 428 | - reverse: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 429 | jobs: "{job-name}" |
| 430 | result: "success" |
Anaël Closson | adcb39d | 2017-03-10 15:39:09 +0100 | [diff] [blame] | 431 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 432 | # WRAPPERS |
| 433 | - wrapper: |
| 434 | name: build-timeout |
| 435 | wrappers: |
| 436 | - timeout: |
| 437 | type: absolute |
| 438 | timeout: 360 |
| 439 | fail: true |
| 440 | |
| 441 | - wrapper: |
Kiran Kamineni | 9655e0f | 2018-10-23 16:53:34 -0700 | [diff] [blame] | 442 | name: golang110 |
Kiran Kamineni | 85b44e8 | 2018-03-21 11:14:29 -0700 | [diff] [blame] | 443 | wrappers: |
| 444 | - raw: |
| 445 | xml: | |
| 446 | <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2"> |
| 447 | <goVersion>Golang 1.10</goVersion> |
| 448 | </org.jenkinsci.plugins.golang.GolangBuildWrapper> |
| 449 | |
| 450 | - wrapper: |
Kiran Kamineni | 9655e0f | 2018-10-23 16:53:34 -0700 | [diff] [blame] | 451 | name: golang111 |
| 452 | wrappers: |
| 453 | - raw: |
| 454 | xml: | |
| 455 | <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2"> |
| 456 | <goVersion>Golang 1.11</goVersion> |
| 457 | </org.jenkinsci.plugins.golang.GolangBuildWrapper> |
| 458 | |
| 459 | - wrapper: |
Kiran Kamineni | 64cbb96 | 2019-04-25 12:21:26 -0700 | [diff] [blame] | 460 | name: golang112 |
| 461 | wrappers: |
| 462 | - raw: |
| 463 | xml: | |
| 464 | <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2"> |
| 465 | <goVersion>Golang 1.12</goVersion> |
| 466 | </org.jenkinsci.plugins.golang.GolangBuildWrapper> |
| 467 | |
| 468 | - wrapper: |
Larry Sachs | bfeb712 | 2020-06-30 08:42:20 -0700 | [diff] [blame] | 469 | name: golang114 |
| 470 | wrappers: |
| 471 | - raw: |
| 472 | xml: | |
Larry Sachs | 5561c72 | 2020-07-07 17:46:25 -0700 | [diff] [blame] | 473 | <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2"> |
Larry Sachs | bfeb712 | 2020-06-30 08:42:20 -0700 | [diff] [blame] | 474 | <goVersion>Golang 1.14</goVersion> |
| 475 | </org.jenkinsci.plugins.golang.GolangBuildWrapper> |
| 476 | |
| 477 | - wrapper: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 478 | # This wrapper is required for all jobs as it configures the wrappers |
| 479 | # needed by the eCOMP infra. |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 480 | name: infra-wrappers |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 481 | wrappers: |
Jessica Wagantall | 4fecf31 | 2017-04-25 11:40:31 -0700 | [diff] [blame] | 482 | - timestamps |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 483 | - timeout: |
| 484 | type: absolute |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 485 | timeout: "{build-timeout}" |
| 486 | timeout-var: "BUILD_TIMEOUT" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 487 | fail: true |
| 488 | - ssh-agent-credentials: |
| 489 | users: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 490 | - "onap-jenkins-ssh" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 491 | - openstack: |
| 492 | single-use: true |
gwu | adeda5a | 2018-07-17 14:12:09 -0700 | [diff] [blame] | 493 | |
| 494 | - wrapper: |
| 495 | # This wrapper is used for docker build jobs to use the dedicated docker |
| 496 | # build VM and turn off OpenStack single-use |
| 497 | name: infra-wrappers-docker-build |
| 498 | wrappers: |
| 499 | - timestamps |
| 500 | - timeout: |
| 501 | type: absolute |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 502 | timeout: "{build-timeout}" |
| 503 | timeout-var: "BUILD_TIMEOUT" |
gwu | adeda5a | 2018-07-17 14:12:09 -0700 | [diff] [blame] | 504 | fail: true |
| 505 | - ssh-agent-credentials: |
| 506 | users: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 507 | - "onap-jenkins-ssh" |
gwu | adeda5a | 2018-07-17 14:12:09 -0700 | [diff] [blame] | 508 | - openstack: |
| 509 | single-use: false |