5 - releng_maven_mri_common: &releng_maven_mri_common
6 name: releng-maven-mri-common
10 ######################
15 **/target/**/feature.xml
16 **/target/failsafe-reports/failsafe-summary.xml
17 **/target/surefire-reports/*-output.txt
23 project-type: freestyle
27 - lf-infra-properties:
28 build-days-to-keep: "{build-days-to-keep}"
31 - lf-infra-parameters:
35 - lf-infra-maven-parameters:
36 mvn-opts: "{mvn-opts}"
37 mvn-params: "{mvn-params}"
38 mvn-version: "{mvn-version}"
40 name: ARCHIVE_ARTIFACTS
41 default: "{archive-artifacts}"
42 description: Artifacts to archive to the logs server.
46 build-timeout: "{build-timeout}"
47 jenkins-ssh-credential: "{jenkins-ssh-credential}"
50 # TODO: Make email notification work.
51 # - lf-infra-email-notify:
52 # email-recipients: '{email-recipients}'
53 # email-prefix: '[releng]'
59 - lf-provide-maven-settings:
60 global-settings-file: "{mvn-global-settings}"
61 settings-file: "{mvn-settings}"
62 - lf-infra-create-netrc:
63 server-id: "{mvn-staging-id}"
64 # include-raw-escape fails due to JJB bug
65 - shell: !include-raw-escape:
66 - global-jjb/shell/common-variables.sh
67 - releng-maven-mri-stage.sh
68 - lf-provide-maven-settings-cleanup
74 - releng_maven_mri_stage: &releng_maven_mri_stage
75 name: releng-maven-mri-stage
77 ######################
78 # Default parameters #
79 ######################
82 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
86 git-url: "$GIT_URL/$PROJECT"
87 github-url: "https://github.com"
88 java-version: openjdk8
89 maven-versions-plugin: false
90 version-properties-file: version.properties
92 mvn-global-settings: global-settings
93 mvn-goals: clean deploy
102 submodule-recursive: true
103 submodule-timeout: 10
104 submodule-disable: false
106 gerrit_release_triggers:
107 - comment-added-contains-event:
108 comment-contains-value: '^Patch Set\s+\d+:\s+stage-(maven-)?release\s*$'
110 gerrit_trigger_file_paths:
114 # github_included_regions MUST match gerrit_trigger_file_paths
115 github_included_regions:
118 #####################
119 # Job Configuration #
120 #####################
122 disabled: "{disable-job}"
125 - lf-infra-parameters:
129 - lf-infra-maven-parameters:
130 mvn-opts: "{mvn-opts}"
131 mvn-params: "{mvn-params}"
132 mvn-version: "{mvn-version}"
133 staging-profile-id: "{staging-profile-id}"
134 - distribution-karaf-version:
135 karaf-version: "{karaf-version}"
137 name: MAVEN_VERSIONS_PLUGIN
138 default: "{maven-versions-plugin}"
139 description: Use maven-versions-plugin to update pom versions.
141 name: ARCHIVE_ARTIFACTS
142 default: "{archive-artifacts}"
143 description: Artifacts to archive to the logs server.
145 name: STAGING_PROFILE_ID
146 default: "{staging-profile-id}"
147 description: Nexus staging profile ID.
151 - lf-jacoco-nojava-workaround
152 - integration-set-variables
154 mvn-version: "{mvn-version}"
155 - lf-update-java-alternatives:
156 java-version: "{java-version}"
157 - lf-provide-maven-settings:
158 global-settings-file: "{mvn-global-settings}"
159 settings-file: "{mvn-settings}"
160 - lf-maven-versions-plugin:
161 maven-versions-plugin: "{maven-versions-plugin}"
162 version-properties-file: "{version-properties-file}"
163 mvn-version: "{mvn-version}"
165 mvn-settings: "{mvn-settings}"
166 - shell: !include-raw-escape: global-jjb/shell/maven-patch-release.sh
168 mvn-goals: "{mvn-goals}"
170 sign-artifacts: "{sign-artifacts}"
171 sign-dir: "$WORKSPACE/m2repo"
172 sign-mode: "{sign-mode}"
174 mvn-global-settings: "{mvn-global-settings}"
175 mvn-settings: "{mvn-settings}"
176 mvn-staging-id: "{mvn-staging-id}"
178 mvn-central: "{mvn-central}"
179 mvn-global-settings: "{mvn-global-settings}"
180 mvn-settings: "{mvn-settings}"
181 ossrh-profile-id: "{ossrh-profile-id}"
182 - lf-provide-maven-settings-cleanup
184 properties-file: maven-staged-bundle.env
186 - project: "{project-name}-distribution-mri-test-{stream}"
188 predefined-parameters: |
189 BUNDLE_URL=$BUNDLE_URL
190 KARAF_VERSION=$KARAF_VERSION
193 name: "{project-name}-maven-mri-stage-{stream}"
194 id: gerrit-maven-mri-stage
195 <<: *releng_maven_mri_common
196 # yamllint disable-line rule:key-duplicates
197 <<: *releng_maven_mri_stage
200 - lf-infra-gerrit-scm:
201 jenkins-ssh-credential: "{jenkins-ssh-credential}"
203 refspec: "$GERRIT_REFSPEC"
204 branch: "$GERRIT_BRANCH"
205 submodule-recursive: "{submodule-recursive}"
206 submodule-timeout: "{submodule-timeout}"
207 submodule-disable: "{submodule-disable}"
208 choosing-strategy: default