2018-11-16 06:12:04 +01:00
|
|
|
# Job definition to test PostgreSQL connector against PostgreSQL
|
2017-11-03 12:25:57 +01:00
|
|
|
---
|
|
|
|
- job:
|
2018-11-16 06:12:04 +01:00
|
|
|
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
|
|
|
|
- 9.6-alpine
|
|
|
|
- 10-alpine
|
|
|
|
- 11-alpine
|
2017-11-03 12:25:57 +01:00
|
|
|
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
|
2018-11-16 06:12:04 +01:00
|
|
|
- inject:
|
|
|
|
groovy-script: |
|
|
|
|
if (POSTGRES_VERSION.endsWith('alpine')) {
|
|
|
|
['MAVEN_ARGS': '-Dpostgres.config.file=/usr/local/share/postgresql/postgresql.conf.sample']
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
['MAVEN_ARGS': '-Dnone']
|
|
|
|
}
|
2017-11-03 12:25:57 +01:00
|
|
|
triggers:
|
2018-11-09 13:57:42 +01:00
|
|
|
- timed: "H 04 * * 1-5"
|
2017-11-03 12:25:57 +01:00
|
|
|
builders:
|
|
|
|
- maven-target:
|
|
|
|
maven-version: (Default)
|
2019-02-01 06:38:59 +01:00
|
|
|
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
|
2017-11-03 12:25:57 +01:00
|
|
|
publishers:
|
|
|
|
- junit:
|
|
|
|
results: "**/target/surefire-reports/*.xml,**/target/failsafe-reports/*.xml"
|
|
|
|
- email:
|
|
|
|
recipients: jpechane@redhat.com
|