@@ -50,15 +50,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
5050 *
5151 * ### Integrations
5252 *
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- *
6253 * ### Job configuration
6354 *
6455 * This Jenkinsfile gets its configuration from four sources:
@@ -82,11 +73,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
8273 *
8374 * Below is the additional structure specific to this Jenkinsfile:
8475 *
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: ...
9076 */
9177
9278@Field final String DEFAULT_JDK_TOOL = ' OpenJDK 17 Latest'
@@ -104,7 +90,6 @@ import org.hibernate.jenkins.pipeline.helpers.alternative.AlternativeMultiMap
10490
10591@Field boolean enableDefaultBuild = false
10692@Field boolean enableDefaultBuildIT = false
107- @Field boolean deploySnapshot = false
10893
10994this . helper = new JobHelper (this )
11095
@@ -193,15 +178,6 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse'.
193178 ])
194179 ])
195180
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-
205181 if (params. ENVIRONMENT_FILTER ) {
206182 keepOnlyEnvironmentsMatchingFilter(params. ENVIRONMENT_FILTER )
207183 }
@@ -225,8 +201,7 @@ Some useful filters: 'default', 'jdk', 'jdk-10', 'eclipse'.
225201
226202 enableDefaultBuild =
227203 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() } }
230205
231206 echo """ Branch: ${ helper.scmSource.branch.name}
232207PR: ${ helper.scmSource.pullRequest?.id}
@@ -237,7 +212,6 @@ Resulting execution plan:
237212 enableDefaultBuild=$enableDefaultBuild
238213 enableDefaultBuildIT=$enableDefaultBuildIT
239214 environments=${ environments.enabledAsString}
240- deploySnapshot=$deploySnapshot
241215"""
242216}
243217
@@ -248,15 +222,10 @@ stage('Default build') {
248222 return
249223 }
250224 runBuildOnNode {
251- withMavenWorkspace( mavenSettingsConfig : deploySnapshot ? helper . configuration . file . deployment . maven . settingsId : null ) {
225+ withMavenWorkspace {
252226 mvn """ \
253- clean \
227+ clean install \
254228 --fail-at-end \
255- ${ deploySnapshot ? "\
256- deploy -DdeployAtEnd=true \
257- " : "\
258- install \
259- "} \
260229 -Pdist \
261230 -Pcoverage \
262231 -Pjqassistant -Pci-build \
0 commit comments