From 3d22ed30a312a10091bb8471295f425aa02969e0 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Fri, 19 Jan 2024 09:21:28 -0500 Subject: [PATCH] DBZ-7439 [ci] Update TF with Oracle 23 * Introduce new InstantClient version property Needed because ojdbc8 versions for Oracle 23 have different version semantics Also adjusted documentation/build pipelines * Introduce oracle-23 profile Allows testing Oracle 23 separately from distribution builds --- debezium-bom/pom.xml | 2 +- debezium-connector-oracle/pom.xml | 10 ++++++++++ debezium-testing/debezium-testing-system/README.md | 3 ++- jenkins-jobs/pipelines/release/release-pipeline.groovy | 3 ++- pom.xml | 5 ++++- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/debezium-bom/pom.xml b/debezium-bom/pom.xml index b8d0ac299..1e56357e7 100644 --- a/debezium-bom/pom.xml +++ b/debezium-bom/pom.xml @@ -241,7 +241,7 @@ com.oracle.instantclient xstreams - ${version.oracle.driver} + ${version.oracle.instantclient} diff --git a/debezium-connector-oracle/pom.xml b/debezium-connector-oracle/pom.xml index aca6ca358..bfb7420b6 100644 --- a/debezium-connector-oracle/pom.xml +++ b/debezium-connector-oracle/pom.xml @@ -809,5 +809,15 @@ true + + oracle-23 + + false + + + 23.3.0.23.09 + 23.3.0.0 + + diff --git a/debezium-testing/debezium-testing-system/README.md b/debezium-testing/debezium-testing-system/README.md index 163086e07..da9063587 100644 --- a/debezium-testing/debezium-testing-system/README.md +++ b/debezium-testing/debezium-testing-system/README.md @@ -23,6 +23,7 @@ mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \ Add Oracle drivers for oracle connector ``` bash ORACLE_ARTIFACT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=version.oracle.driver) +ORACLE_INSTANTCLIENT_ARTIFACT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=version.oracle.instantclient) ORACLE_ARTIFACT_DIR="${PWD}/oracle-libs/${ORACLE_ARTIFACT_VERSION}.0" mkdir -p ${ORACLE_ARTIFACT_DIR} @@ -31,7 +32,7 @@ mvn install:install-file -DgroupId=com.oracle.instantclient -DartifactId=ojdbc8 -Dversion=${ORACLE_ARTIFACT_VERSION} -Dpackaging=jar -Dfile=ojdbc8.jar \ -Dmaven.repo.local=${MAVEN_REPO} mvn install:install-file -DgroupId=com.oracle.instantclient -DartifactId=xstreams \ - -Dversion=${ORACLE_ARTIFACT_VERSION} -Dpackaging=jar -Dfile=xstreams.jar \ + -Dversion=${ORACLE_INSTANTCLIENT_ARTIFACT_VERSION} -Dpackaging=jar -Dfile=xstreams.jar \ -Dmaven.repo.local=${MAVEN_REPO} ``` diff --git a/jenkins-jobs/pipelines/release/release-pipeline.groovy b/jenkins-jobs/pipelines/release/release-pipeline.groovy index b2db3e437..3760bd2d1 100644 --- a/jenkins-jobs/pipelines/release/release-pipeline.groovy +++ b/jenkins-jobs/pipelines/release/release-pipeline.groovy @@ -327,11 +327,12 @@ node('release-node') { dir(DEBEZIUM_DIR) { ORACLE_ARTIFACT_VERSION = (readFile('pom.xml') =~ /(?ms)(.+)<\/version.oracle.driver>/)[0][1] + ORACLE_INSTANTCLIENT_ARTIFACT_VERSION = (readFile('pom.xml') =~ /(?ms)(.+)<\/version.oracle.instantclient>/)[0][1] ORACLE_ARTIFACT_DIR = "$HOME_DIR/oracle-libs/${ORACLE_ARTIFACT_VERSION}.0" } dir(ORACLE_ARTIFACT_DIR) { sh "mvn install:install-file -DgroupId=com.oracle.instantclient -DartifactId=ojdbc8 -Dversion=$ORACLE_ARTIFACT_VERSION -Dpackaging=jar -Dfile=ojdbc8.jar" - sh "mvn install:install-file -DgroupId=com.oracle.instantclient -DartifactId=xstreams -Dversion=$ORACLE_ARTIFACT_VERSION -Dpackaging=jar -Dfile=xstreams.jar" + sh "mvn install:install-file -DgroupId=com.oracle.instantclient -DartifactId=xstreams -Dversion=$ORACLE_INSTANTCLIENT_ARTIFACT_VERSION -Dpackaging=jar -Dfile=xstreams.jar" } } diff --git a/pom.xml b/pom.xml index 0a880aff6..9e3f3761a 100644 --- a/pom.xml +++ b/pom.xml @@ -130,12 +130,15 @@ 0.29.0 4.11.0 12.4.2.jre8 - 23.3.0.0 11.5.0.0 1.1.3 4.50.10 4.14.0 3.2.0 + + + 21.6.0.0 + 21.6.0.0 8.2