Skip to content

Commit 095fa0d

Browse files
committed
Migrate to new Sonatype infrastructure.
Resolves #1180.
1 parent b9a8bed commit 095fa0d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pipeline {
110110

111111
environment {
112112
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
113-
SONATYPE = credentials('oss-token')
113+
SONATYPE = credentials('oss-login')
114114
KEYRING = credentials('spring-signing-secring.gpg')
115115
PASSPHRASE = credentials('spring-gpg-passphrase')
116116
}
@@ -134,6 +134,11 @@ pipeline {
134134

135135
if (RELEASE_TYPE == 'release') {
136136
sh "PROFILE=distribute,central USERNAME=${SONATYPE_USR} PASSWORD=${SONATYPE_PSW} ci/build-and-deploy-to-maven-central.sh ${PROJECT_VERSION}"
137+
138+
slackSend(
139+
color: (currentBuild.currentResult == 'SUCCESS') ? 'good' : 'danger',
140+
channel: '#spring-ws',
141+
message: "@here Spring WS ${PROJECT_VERSION} is staged on Sonatype awaiting closure and release.")
137142
} else {
138143
sh "PROFILE=distribute,${RELEASE_TYPE} ci/build-and-deploy-to-artifactory.sh"
139144
}

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,10 @@
476476
<extensions>true</extensions>
477477
<configuration>
478478
<serverId>sonatype</serverId>
479-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
480-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
479+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
480+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
481481
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
482-
<skipStagingRepositoryClose>false</skipStagingRepositoryClose>
482+
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
483483
</configuration>
484484
</plugin>
485485
</plugins>
@@ -505,7 +505,7 @@
505505
<distributionManagement>
506506
<repository>
507507
<id>sonatype</id>
508-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
508+
<url>https://s01.oss.sonatype.org//service/local/staging/deploy/maven2/</url>
509509
</repository>
510510
</distributionManagement>
511511

0 commit comments

Comments
 (0)