@@ -50,15 +50,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
50
50
*
51
51
* ### Integrations
52
52
*
53
- * #### Nexus deployment
54
- *
55
- * This job is only able to deploy snapshot artifacts,
56
- * for every non-PR build on "primary" branches (main and maintenance branches),
57
- * but the name of a Maven settings file must be provided in the job configuration file
58
- * (see below).
59
- *
60
- * For actual releases, see jenkins/release.groovy.
61
- *
62
53
* ### Job configuration
63
54
*
64
55
* This Jenkinsfile gets its configuration from four sources:
@@ -82,11 +73,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
82
73
*
83
74
* Below is the additional structure specific to this Jenkinsfile:
84
75
*
85
- * deployment:
86
- * maven:
87
- * # String containing the ID of a Maven settings file registered using the config-file-provider Jenkins plugin.
88
- * # The settings must provide credentials to the server with ID 'ossrh'.
89
- * settingsId: ...
90
76
*/
91
77
92
78
@Field final String DEFAULT_JDK_TOOL = ' OpenJDK 17 Latest'
@@ -104,7 +90,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
104
90
105
91
@Field boolean enableDefaultBuild = false
106
92
@Field boolean enableDefaultBuildIT = false
107
- @Field boolean deploySnapshot = false
108
93
109
94
this . helper = new JobHelper (this )
110
95
@@ -193,15 +178,6 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse'.
193
178
])
194
179
])
195
180
196
- if (helper. scmSource. branch. primary && ! helper. scmSource. pullRequest) {
197
- if (helper. configuration. file?. deployment?. maven?. settingsId) {
198
- deploySnapshot = true
199
- }
200
- else {
201
- echo " Missing deployment configuration in job configuration file - snapshot deployment will be skipped."
202
- }
203
- }
204
-
205
181
if (params. ENVIRONMENT_FILTER ) {
206
182
keepOnlyEnvironmentsMatchingFilter(params. ENVIRONMENT_FILTER )
207
183
}
@@ -225,8 +201,7 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse'.
225
201
226
202
enableDefaultBuild =
227
203
enableDefaultBuildIT ||
228
- environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } } ||
229
- deploySnapshot
204
+ environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } }
230
205
231
206
echo """ Branch: ${ helper.scmSource.branch.name}
232
207
PR: ${ helper.scmSource.pullRequest?.id}
@@ -237,7 +212,6 @@ Resulting execution plan:
237
212
enableDefaultBuild=$enableDefaultBuild
238
213
enableDefaultBuildIT=$enableDefaultBuildIT
239
214
environments=${ environments.enabledAsString}
240
- deploySnapshot=$deploySnapshot
241
215
"""
242
216
}
243
217
@@ -248,15 +222,10 @@ stage('Default build') {
248
222
return
249
223
}
250
224
runBuildOnNode {
251
- withMavenWorkspace( mavenSettingsConfig : deploySnapshot ? helper . configuration . file . deployment . maven . settingsId : null ) {
225
+ withMavenWorkspace {
252
226
mvn """ \
253
- clean \
227
+ clean install \
254
228
--fail-at-end \
255
- ${ deploySnapshot ? "\
256
- deploy -DdeployAtEnd=true \
257
- " : "\
258
- install \
259
- "} \
260
229
-Pdist \
261
230
-Pcoverage \
262
231
-Pjqassistant -Pci-build \
0 commit comments