DBZ-3069 New Maven infra for release
This commit is contained in:
parent
c7850e8614
commit
dadaaa4212
@ -69,7 +69,7 @@ DEBEZIUM_ADDITIONAL_REPOSITORIES.split().each {
|
|||||||
|
|
||||||
IMAGES = ['connect', 'connect-base', 'examples/mysql', 'examples/mysql-gtids', 'examples/postgres', 'examples/mongodb', 'kafka', 'server', 'zookeeper']
|
IMAGES = ['connect', 'connect-base', 'examples/mysql', 'examples/mysql-gtids', 'examples/postgres', 'examples/mongodb', 'kafka', 'server', 'zookeeper']
|
||||||
MAVEN_CENTRAL = 'https://repo1.maven.org/maven2'
|
MAVEN_CENTRAL = 'https://repo1.maven.org/maven2'
|
||||||
STAGING_REPO = 'https://oss.sonatype.org/content/repositories'
|
STAGING_REPO = 'https://s01.oss.sonatype.org/content/repositories'
|
||||||
STAGING_REPO_ID = null
|
STAGING_REPO_ID = null
|
||||||
ADDITIONAL_STAGING_REPO_ID = [:]
|
ADDITIONAL_STAGING_REPO_ID = [:]
|
||||||
LOCAL_MAVEN_REPO = "$HOME_DIR/.m2/repository"
|
LOCAL_MAVEN_REPO = "$HOME_DIR/.m2/repository"
|
||||||
@ -575,6 +575,7 @@ node('Slave') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Merge candidates to the master') {
|
stage('Merge candidates to the master') {
|
||||||
|
if (!DRY_RUN) {
|
||||||
dir(DEBEZIUM_DIR) {
|
dir(DEBEZIUM_DIR) {
|
||||||
withCredentials([usernamePassword(credentialsId: GIT_CREDENTIALS_ID, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
|
withCredentials([usernamePassword(credentialsId: GIT_CREDENTIALS_ID, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
|
||||||
sh """
|
sh """
|
||||||
@ -585,7 +586,6 @@ node('Slave') {
|
|||||||
git push --delete https://\${GIT_USERNAME}:\${GIT_PASSWORD}@$DEBEZIUM_REPOSITORY $CANDIDATE_BRANCH
|
git push --delete https://\${GIT_USERNAME}:\${GIT_PASSWORD}@$DEBEZIUM_REPOSITORY $CANDIDATE_BRANCH
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ADDITIONAL_REPOSITORIES.each { id, repo ->
|
ADDITIONAL_REPOSITORIES.each { id, repo ->
|
||||||
dir(id) {
|
dir(id) {
|
||||||
sh "git pull --rebase $CANDIDATE_BRANCH && git checkout master && git rebase $CANDIDATE_BRANCH"
|
sh "git pull --rebase $CANDIDATE_BRANCH && git checkout master && git rebase $CANDIDATE_BRANCH"
|
||||||
@ -601,6 +601,8 @@ node('Slave') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
mail to: 'jpechane@redhat.com', subject: "${JOB_NAME} run #${BUILD_NUMBER} finished", body: "Run ${BUILD_URL} finished with result: ${currentBuild.currentResult}"
|
||||||
|
9
pom.xml
9
pom.xml
@ -165,6 +165,9 @@
|
|||||||
|
|
||||||
<!-- Skip the API checks by default. Let the modules opt in. -->
|
<!-- Skip the API checks by default. Let the modules opt in. -->
|
||||||
<revapi.skip>true</revapi.skip>
|
<revapi.skip>true</revapi.skip>
|
||||||
|
|
||||||
|
<!-- Which Maven Central infra should be used -->
|
||||||
|
<release.endpoint>https://s01.oss.sonatype.org/</release.endpoint>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
@ -191,7 +194,7 @@
|
|||||||
<repository>
|
<repository>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
<name>Sonatype Staging Repository</name>
|
<name>Sonatype Staging Repository</name>
|
||||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
|
<url>${release.endpoint}/service/local/staging/deploy/maven2</url>
|
||||||
</repository>
|
</repository>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
@ -213,7 +216,7 @@
|
|||||||
<repository>
|
<repository>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
<name>OSS Sonatype Nexus</name>
|
<name>OSS Sonatype Nexus</name>
|
||||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
<url>${release.endpoint}/content/groups/public/</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
<updatePolicy>never</updatePolicy>
|
<updatePolicy>never</updatePolicy>
|
||||||
@ -759,7 +762,7 @@
|
|||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<serverId>ossrh</serverId>
|
<serverId>ossrh</serverId>
|
||||||
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
|
<nexusUrl>${release.endpoint}</nexusUrl>
|
||||||
<autoReleaseAfterClose>false</autoReleaseAfterClose>
|
<autoReleaseAfterClose>false</autoReleaseAfterClose>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
Loading…
Reference in New Issue
Block a user