Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | c3c8393 | 2018-10-30 13:56:37 -0700 | [diff] [blame] | 2 | # maven jobs for Java projects |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 3 | |
| 4 | - job-template: |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 5 | id: maven-install |
| 6 | name: '{project}-gerrit' |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 7 | description: | |
| 8 | <!-- Managed by Jenkins Job Builder --> |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 9 | Created by {id} job-template from ci-management/jjb/maven.yaml |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 10 | |
| 11 | node: 'ubuntu16.04-basebuild-1c-2g' |
Matteo Scandolo | 0024038 | 2018-11-26 14:42:32 -0800 | [diff] [blame] | 12 | project-type: freestyle |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 13 | |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 14 | parameters: |
| 15 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 16 | name: GERRIT_BRANCH |
| 17 | default: 'master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 18 | description: 'Use default when using "Build Now"' |
| 19 | |
| 20 | - string: |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 21 | name: GERRIT_REFSPEC |
| 22 | default: 'refs/heads/master' |
Kailash Khalasi | f3f15bd | 2018-05-09 09:58:52 -0700 | [diff] [blame] | 23 | description: 'Use default when using "Build Now"' |
| 24 | |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 25 | triggers: |
| 26 | - cord-infra-gerrit-trigger-patchset: |
| 27 | gerrit-server-name: '{gerrit-server-name}' |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 28 | project-regexp: '{project}' |
Kailash Khalasi | 69c8fcd | 2018-05-09 09:43:49 -0700 | [diff] [blame] | 29 | branch-regexp: '{branch-regexp}' |
| 30 | file-include-regexp: '{all-files-regexp}' |
| 31 | dependency-jobs: '{dependency-jobs}' |
| 32 | |
| 33 | properties: |
| 34 | - cord-infra-properties: |
| 35 | build-days-to-keep: '{build-days-to-keep}' |
| 36 | artifact-num-to-keep: '{artifact-num-to-keep}' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 37 | |
| 38 | scm: |
| 39 | - git: |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 40 | url: '{gerrit-server-url}/{project}' |
Kailash Khalasi | 1b3d3fe | 2018-05-09 13:20:22 -0700 | [diff] [blame] | 41 | branches: |
| 42 | - '$GERRIT_BRANCH' |
Kailash Khalasi | 45f4e2c | 2018-05-09 14:09:50 -0700 | [diff] [blame] | 43 | refspec: '$GERRIT_REFSPEC' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 44 | choosing-strategy: 'gerrit' |
Kailash Khalasi | a5ca0c7 | 2018-05-09 12:00:21 -0700 | [diff] [blame] | 45 | shallow-clone: true |
Zack Williams | c3c8393 | 2018-10-30 13:56:37 -0700 | [diff] [blame] | 46 | |
Matteo Scandolo | 0024038 | 2018-11-26 14:42:32 -0800 | [diff] [blame] | 47 | builders: |
| 48 | # NOTE: this env var is only required to fix a bug in the "surefire" dependency: |
| 49 | # https://issues.apache.org/jira/browse/SUREFIRE-1588 |
| 50 | # https://github.com/apache/maven-surefire/pull/197 |
| 51 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925 |
| 52 | # should be removed as soon as this problem is resolved |
| 53 | - inject: |
| 54 | properties-content: | |
| 55 | _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true |
| 56 | - maven-target: |
| 57 | pom: pom.xml |
| 58 | goals: 'clean install' |
| 59 | |
Matteo Scandolo | 23cde38 | 2019-05-22 17:00:43 -0700 | [diff] [blame] | 60 | - job-template: |
| 61 | id: maven-deploy |
| 62 | name: '{project}-gerrit-deploy' |
| 63 | description: | |
| 64 | <!-- Managed by Jenkins Job Builder --> |
| 65 | Created by {id} job-template from ci-management/jjb/maven.yaml |
| 66 | |
| 67 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 68 | project-type: freestyle |
| 69 | |
| 70 | parameters: |
| 71 | - string: |
| 72 | name: GERRIT_BRANCH |
| 73 | default: 'master' |
| 74 | description: 'Use default when using "Build Now"' |
| 75 | |
| 76 | - string: |
| 77 | name: GERRIT_REFSPEC |
| 78 | default: 'refs/heads/master' |
| 79 | description: 'Use default when using "Build Now"' |
| 80 | |
| 81 | triggers: |
| 82 | - cord-infra-gerrit-trigger-merge: |
| 83 | gerrit-server-name: '{gerrit-server-name}' |
| 84 | project-regexp: '{project}' |
| 85 | branch-regexp: '{branch-regexp}' |
| 86 | file-include-regexp: '{all-files-regexp}' |
| 87 | dependency-jobs: '{dependency-jobs}' |
| 88 | |
| 89 | properties: |
| 90 | - cord-infra-properties: |
| 91 | build-days-to-keep: '{build-days-to-keep}' |
| 92 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 93 | |
| 94 | scm: |
| 95 | - git: |
| 96 | url: '{gerrit-server-url}/{project}' |
| 97 | branches: |
| 98 | - '$GERRIT_BRANCH' |
| 99 | refspec: '$GERRIT_REFSPEC' |
| 100 | choosing-strategy: 'gerrit' |
| 101 | shallow-clone: true |
| 102 | |
| 103 | builders: |
| 104 | - inject: |
| 105 | properties-content: | |
| 106 | _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true |
| 107 | - maven-target: |
| 108 | pom: pom.xml |
| 109 | settings: onoscord-apps |
Matteo Scandolo | e7ee33c | 2019-05-23 13:23:13 -0700 | [diff] [blame] | 110 | settings-type: cfp |
Matteo Scandolo | 23cde38 | 2019-05-22 17:00:43 -0700 | [diff] [blame] | 111 | goals: 'clean deploy' |
Zack Williams | c3c8393 | 2018-10-30 13:56:37 -0700 | [diff] [blame] | 112 | |
| 113 | - job-template: |
| 114 | id: maven-test |
| 115 | name: 'verify_{project}_maven-test' |
| 116 | description: | |
| 117 | <!-- Managed by Jenkins Job Builder --> |
| 118 | Created by {id} job-template from ci-management/jjb/maven.yaml |
| 119 | |
| 120 | triggers: |
| 121 | - cord-infra-gerrit-trigger-patchset: |
| 122 | gerrit-server-name: '{gerrit-server-name}' |
| 123 | project-regexp: '{project}' |
| 124 | branch-regexp: '{branch-regexp}' |
| 125 | file-include-regexp: '{all-files-regexp}' |
| 126 | dependency-jobs: '{dependency-jobs}' |
| 127 | |
| 128 | properties: |
| 129 | - cord-infra-properties: |
| 130 | build-days-to-keep: '{build-days-to-keep}' |
| 131 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 132 | |
| 133 | |
| 134 | wrappers: |
| 135 | - lf-infra-wrappers: |
| 136 | build-timeout: 30 |
| 137 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 138 | |
| 139 | scm: |
| 140 | - lf-infra-gerrit-scm: |
| 141 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 142 | refspec: '$GERRIT_REFSPEC' |
| 143 | branch: '$GERRIT_BRANCH' |
| 144 | submodule-recursive: 'false' |
| 145 | choosing-strategy: gerrit |
| 146 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 147 | |
| 148 | node: 'ubuntu16.04-basebuild-1c-2g' |
| 149 | project-type: maven |
| 150 | concurrent: true |
| 151 | |
Matteo Scandolo | 0024038 | 2018-11-26 14:42:32 -0800 | [diff] [blame] | 152 | builders: |
| 153 | # NOTE: this env var is only required to fix a bug in the "surefire" dependency: |
| 154 | # https://issues.apache.org/jira/browse/SUREFIRE-1588 |
| 155 | # https://github.com/apache/maven-surefire/pull/197 |
| 156 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925 |
| 157 | # should be removed as soon as this problem is resolved |
| 158 | - inject: |
| 159 | properties-content: | |
| 160 | _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true |
| 161 | - maven-target: |
| 162 | pom: pom.xml |
| 163 | goals: 'test' |