@@ -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 )
@@ -375,15 +360,6 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
375
360
])
376
361
])
377
362
378
- if (helper. scmSource. branch. primary && ! helper. scmSource. pullRequest) {
379
- if (helper. configuration. file?. deployment?. maven?. settingsId) {
380
- deploySnapshot = true
381
- }
382
- else {
383
- echo " Missing deployment configuration in job configuration file - snapshot deployment will be skipped."
384
- }
385
- }
386
-
387
363
if (params. ENVIRONMENT_FILTER ) {
388
364
keepOnlyEnvironmentsMatchingFilter(params. ENVIRONMENT_FILTER )
389
365
}
@@ -402,8 +378,7 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
402
378
403
379
enableDefaultBuild =
404
380
enableDefaultBuildIT ||
405
- environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } } ||
406
- deploySnapshot
381
+ environments. content. any { key , envSet -> envSet. enabled. any { buildEnv -> buildEnv. requiresDefaultBuildArtifacts() } }
407
382
408
383
if (helper. scmSource. pullRequest) {
409
384
incrementalBuild = true
@@ -418,7 +393,6 @@ Resulting execution plan:
418
393
enableDefaultBuild=$enableDefaultBuild
419
394
enableDefaultBuildIT=$enableDefaultBuildIT
420
395
environments=${ environments.enabledAsString}
421
- deploySnapshot=$deploySnapshot
422
396
incrementalBuild=$incrementalBuild
423
397
"""
424
398
}
@@ -430,7 +404,7 @@ stage('Default build') {
430
404
return
431
405
}
432
406
runBuildOnNode( NODE_PATTERN_BASE , [time : 2 , unit : ' HOURS' ] ) {
433
- withMavenWorkspace( mavenSettingsConfig : deploySnapshot ? helper . configuration . file . deployment . maven . settingsId : null ) {
407
+ withMavenWorkspace {
434
408
String commonMavenArgs = """ \
435
409
--fail-at-end \
436
410
-Pcoverage \
@@ -443,12 +417,7 @@ stage('Default build') {
443
417
-Pdist \
444
418
-Pjqassistant -Pci-build \
445
419
-DskipITs \
446
- clean \
447
- ${ deploySnapshot ? "\
448
- deploy \
449
- " : "\
450
- install \
451
- "} \
420
+ clean install \
452
421
"""
453
422
// Quick check after the initial build, if we spot the change here, no need to even proceed..
454
423
checkNoSourceFilesModifiedOrFail()
0 commit comments