[jenkins-jobs] Support server for pre-2.2; Debezium Server in core repo

This commit is contained in:
Jiri Pechanec 2023-03-09 12:38:40 +01:00
parent 1877906dd8
commit ee3904dbef

View File

@ -525,9 +525,13 @@ node('Slave') {
}
echo "Modifying Server Dockerfile"
dir("$IMAGES_DIR/server/$IMAGE_TAG") {
def serverStagingRepoId = ADDITIONAL_REPOSITORIES['server']?.mavenRepoId
if (serverStagingRepoId == null) {
serverStagingRepoId = STAGING_REPO_ID
}
modifyFile('Dockerfile') {
it
.replaceFirst('MAVEN_REPO_CENTRAL="[^"]*"', "MAVEN_REPO_CENTRAL=\"$STAGING_REPO/${ADDITIONAL_REPOSITORIES['server'].mavenRepoId}/\"")
.replaceFirst('MAVEN_REPO_CENTRAL="[^"]*"', "MAVEN_REPO_CENTRAL=\"$STAGING_REPO/$serverStagingRepoId/\"")
.replaceFirst('DEBEZIUM_VERSION=\\S+', "DEBEZIUM_VERSION=$RELEASE_VERSION")
.replaceFirst('SERVER_MD5=\\S+', "SERVER_MD5=$serverSum")
}