@@ -51,15 +51,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
5151 *
5252 * ### Integrations
5353 *
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- *
6354 * #### AWS
6455 *
6556 * 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
140131 * # See https://docs.gradle.com/enterprise/gradle-plugin/#via_environment_variable
141132 * # WARNING: These credentials should not give write access to the build cache!
142133 * 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: ...
148134 */
149135
150136@Field final String DEFAULT_JDK_TOOL = ' OpenJDK 21 Latest'
@@ -162,7 +148,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
162148
163149@Field boolean enableDefaultBuild = false
164150@Field boolean enableDefaultBuildIT = false
165- @Field boolean deploySnapshot = false
166151@Field boolean incrementalBuild = false
167152
168153this . helper = new JobHelper (this )
@@ -375,15 +360,6 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
375360])
376361])
377362
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-
387363if (params. ENVIRONMENT_FILTER ) {
388364keepOnlyEnvironmentsMatchingFilter(params. ENVIRONMENT_FILTER )
389365}
@@ -402,8 +378,7 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse', 'postgresql', 'elast
402378
403379enableDefaultBuild =
404380enableDefaultBuildIT ||
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() } }
407382
408383if (helper. scmSource. pullRequest) {
409384incrementalBuild = true
@@ -418,7 +393,6 @@ Resulting execution plan:
418393 enableDefaultBuild=$enableDefaultBuild
419394 enableDefaultBuildIT=$enableDefaultBuildIT
420395 environments=${ environments.enabledAsString}
421- deploySnapshot=$deploySnapshot
422396 incrementalBuild=$incrementalBuild
423397"""
424398}
@@ -430,7 +404,7 @@ stage('Default build') {
430404return
431405}
432406runBuildOnNode( NODE_PATTERN_BASE , [time : 2 , unit : ' HOURS' ] ) {
433- withMavenWorkspace( mavenSettingsConfig : deploySnapshot ? helper . configuration . file . deployment . maven . settingsId : null ) {
407+ withMavenWorkspace {
434408String commonMavenArgs = """ \
435409--fail-at-end \
436410-Pcoverage \
@@ -443,12 +417,7 @@ stage('Default build') {
443417-Pdist \
444418-Pjqassistant -Pci-build \
445419-DskipITs \
446- clean \
447- ${ deploySnapshot ? "\
448- deploy \
449- " : "\
450- install \
451- "} \
420+ clean install \
452421"""
453422// Quick check after the initial build, if we spot the change here, no need to even proceed..
454423checkNoSourceFilesModifiedOrFail()
0 commit comments