From dd83371f7bf528f69ea7d5107ec0b809e2e60c3a Mon Sep 17 00:00:00 2001 From: jcechace Date: Tue, 23 Mar 2021 14:04:29 +0100 Subject: [PATCH] DBZ-3337 using 'main' as default branch for DB2 matrix --- .../job-dsl/connector_db2_matrix_test.groovy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jenkins-jobs/job-dsl/connector_db2_matrix_test.groovy b/jenkins-jobs/job-dsl/connector_db2_matrix_test.groovy index daaf34862..6a6a3e8ee 100644 --- a/jenkins-jobs/job-dsl/connector_db2_matrix_test.groovy +++ b/jenkins-jobs/job-dsl/connector_db2_matrix_test.groovy @@ -16,7 +16,7 @@ matrixJob('connector-debezium-db2-matrix-test') { parameters { stringParam('REPOSITORY', 'https://github.com/debezium/debezium-connector-db2', 'Repository from which connector is built') - stringParam('BRANCH', 'master', 'A branch/tag from which the connector is built') + stringParam('BRANCH', 'main', 'A branch/tag from which the connector is built') stringParam('SOURCE_URL', "", "URL to productised sources") booleanParam('PRODUCT_BUILD', false, 'Is this a productised build?') } @@ -52,13 +52,13 @@ ls -A1 | xargs rm -rf if [ "$PRODUCT_BUILD" == true ] ; then PROFILE_PROD="pnc" curl -OJs $SOURCE_URL && unzip debezium-*-src.zip - + # Build parent mvn clean install -s ~/.m2/settings-snapshots.xml -am -fae \ -DskipTests -DskipITs \ -Dinsecure.repositories=WARN \ - -P$PROFILE_PROD - + -P$PROFILE_PROD + # Run connector tests cd debezium-connector-db2 mvn clean install -U -s $HOME/.m2/settings-snapshots.xml -am -fae \ @@ -69,9 +69,9 @@ if [ "$PRODUCT_BUILD" == true ] ; then $MAVEN_ARGS else PROFILE_PROD="none" - git clone $REPOSITORY . + git clone $REPOSITORY . git checkout $BRANCH - + # Run connector tests mvn clean install -U -s $HOME/.m2/settings-snapshots.xml -am -fae \ -Dmaven.test.failure.ignore=true \