# Job definition to test PostgreSQL connector against PostgreSQL --- - job: project-type: matrix name: debezium-postgresql-matrix-test display-name: Debezium PostgreSQL Test Matrix description: Executes tests for PostgreSQL Connector with PostgreSQL matrix execution-strategy: sequential: true combination-filter: DECODER_PLUGIN == 'decoderbufs' || POSTGRES_VERSION == '11' axes: - axis: type: user-defined name: DECODER_PLUGIN values: - decoderbufs - wal2json - axis: type: user-defined name: POSTGRES_VERSION values: - 10 - 11 - 12 - 9.6-alpine - 10-alpine - 11-alpine - 12-alpine node: Slave properties: - build-discarder: days-to-keep: 7 - github: url: https://github.com/debezium/debezium parameters: - string: name: REPOSITORY default: https://github.com/debezium/debezium description: "Repository from which Debezium is built" - string: name: BRANCH default: master description: "A branch from which Debezium is built" scm: - git: url: $REPOSITORY branches: - "*/$BRANCH" wrappers: - timeout: timeout: 45 - inject: groovy-script: | if (POSTGRES_VERSION.endsWith('alpine')) { ['MAVEN_ARGS': '-Dpostgres.config.file=/usr/local/share/postgresql/postgresql.conf.sample'] } else { ['MAVEN_ARGS': '-Dnone'] } triggers: - timed: "H 04 * * 1-5" builders: - maven-target: maven-version: (Default) goals: clean install -U -s $HOME/.m2/settings-snapshots.xml -pl debezium-connector-postgres -am -fae -Dmaven.test.failure.ignore=true -Dpostgres.port=55432 -Dversion.postgres.server=$POSTGRES_VERSION -Ddecoder.plugin.name=$DECODER_PLUGIN -Dtest.argline='-Ddebezium.test.records.waittime=5' $MAVEN_ARGS publishers: - junit: results: "**/target/surefire-reports/*.xml,**/target/failsafe-reports/*.xml" - email: recipients: jpechane@redhat.com