@@ -51,15 +51,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
51
51
*
52
52
* ### Integrations
53
53
*
54
- * #### Nexus deployment
55
- *
56
- * This job is only able to deploy snapshot artifacts,
57
- * for every non-PR build on "primary" branches (main and maintenance branches),
58
- * but the name of a Maven settings file must be provided in the job configuration file
59
- * (see below).
60
- *
61
- * For actual releases, see jenkins/release.groovy.
62
- *
63
54
* #### AWS
64
55
*
65
56
* This job will trigger integration tests against an Elasticsearch service hosted on AWS.
@@ -140,11 +131,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
140
131
* # See https://docs.gradle.com/enterprise/gradle-plugin/#via_environment_variable
141
132
* # WARNING: These credentials should not give write access to the build cache!
142
133
* pr: ...
143
- * deployment:
144
- * maven:
145
- * # String containing the ID of a Maven settings file registered using the config-file-provider Jenkins plugin.
146
- * # The settings must provide credentials to the server with ID 'ossrh'.
147
- * settingsId: ...
148
134
*/
149
135
150
136
@Field final String DEFAULT_JDK_TOOL = ' OpenJDK 21 Latest'
@@ -162,7 +148,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
162
148
163
149
@Field boolean enableDefaultBuild = false
164
150
@Field boolean enableDefaultBuildIT = false
165
- @Field boolean deploySnapshot = false
166
151
@Field boolean incrementalBuild = false
167
152
168
153
this . helper = new JobHelper (this )
@@ -372,15 +357,6 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
372
357
])
373
358
])
374
359
375
- if (helper. scmSource. branch. primary && ! helper. scmSource. pullRequest) {
376
- if (helper. configuration. file?. deployment?. maven?. settingsId) {
377
- deploySnapshot = true
378
- }
379
- else {
380
- echo " Missing deployment configuration in job configuration file - snapshot deployment will be skipped."
381
- }
382
- }
383
-
384
360
if (params. ENVIRONMENT_FILTER ) {
385
361
keepOnlyEnvironmentsMatchingFilter(params. ENVIRONMENT_FILTER )
386
362
}
@@ -399,8 +375,7 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
399
375
400
376
enableDefaultBuild =
401
377
enableDefaultBuildIT ||
402
- environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } } ||
403
- deploySnapshot
378
+ environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } }
404
379
405
380
if (helper. scmSource. pullRequest) {
406
381
incrementalBuild = true
@@ -415,7 +390,6 @@ Resulting execution plan:
415
390
enableDefaultBuild=$enableDefaultBuild
416
391
enableDefaultBuildIT=$enableDefaultBuildIT
417
392
environments=${ environments.enabledAsString}
418
- deploySnapshot=$deploySnapshot
419
393
incrementalBuild=$incrementalBuild
420
394
"""
421
395
}
@@ -427,7 +401,7 @@ stage('Default build') {
427
401
return
428
402
}
429
403
runBuildOnNode( NODE_PATTERN_BASE , [time : 2 , unit : ' HOURS' ] ) {
430
- withMavenWorkspace( mavenSettingsConfig : deploySnapshot ? helper . configuration . file . deployment . maven . settingsId : null ) {
404
+ withMavenWorkspace {
431
405
String commonMavenArgs = """ \
432
406
--fail-at-end \
433
407
-Pcoverage \
@@ -440,12 +414,7 @@ stage('Default build') {
440
414
-Pdist \
441
415
-Pjqassistant -Pci-build \
442
416
-DskipITs \
443
- clean \
444
- ${ deploySnapshot ? "\
445
- deploy \
446
- " : "\
447
- install \
448
- "} \
417
+ clean install \
449
418
"""
450
419
dir(helper. configuration. maven. localRepositoryPath) {
451
420
stash name :' default-build-result' , includes :" org/hibernate/search/**"
0 commit comments