Skip to content

Commit

Permalink
[db2] add db2 pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanhang1993 committed Oct 30, 2022
1 parent 8994068 commit 848ed19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/azure-pipelines/jobs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
module: sqlserver
tidb:
module: tidb
db2:
module: db2
e2e:
module: e2e
misc:
Expand Down
15 changes: 14 additions & 1 deletion tools/ci/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ STAGE_MONGODB="mongodb"
STAGE_SQLSERVER="sqlserver"
STAGE_TIDB="tidb"
STAGE_OCEANBASE="oceanbase"
STAGE_DB2="db2"
STAGE_E2E="e2e"
STAGE_MISC="misc"

Expand Down Expand Up @@ -52,6 +53,10 @@ MODULES_OCEANBASE="\
flink-connector-oceanbase-cdc,\
flink-sql-connector-oceanbase-cdc"

MODULES_DB2="\
flink-connector-db2-cdc,\
flink-sql-connector-db2-cdc"

MODULES_E2E="\
flink-cdc-e2e-tests"

Expand Down Expand Up @@ -80,6 +85,9 @@ function get_compile_modules_for_stage() {
(${STAGE_OCEANBASE})
echo "-pl $MODULES_OCEANBASE -am"
;;
(${STAGE_DB2})
echo "-pl $MODULES_DB2 -am"
;;
(${STAGE_E2E})
# compile everything; using the -am switch does not work with negated module lists!
# the negation takes precedence, thus not all required modules would be built
Expand All @@ -103,6 +111,7 @@ function get_test_modules_for_stage() {
local modules_sqlserver=$MODULES_SQLSERVER
local modules_tidb=$MODULES_TIDB
local modules_oceanbase=$MODULES_OCEANBASE
local modules_db2=$MODULES_DB2
local modules_e2e=$MODULES_E2E
local negated_mysql=\!${MODULES_MYSQL//,/,\!}
local negated_postgres=\!${MODULES_POSTGRES//,/,\!}
Expand All @@ -111,8 +120,9 @@ function get_test_modules_for_stage() {
local negated_sqlserver=\!${MODULES_SQLSERVER//,/,\!}
local negated_tidb=\!${MODULES_TIDB//,/,\!}
local negated_oceanbase=\!${MODULES_OCEANBASE//,/,\!}
local negated_db2=\!${MODULES_DB2//,/,\!}
local negated_e2e=\!${MODULES_E2E//,/,\!}
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_e2e"
local modules_misc="$negated_mysql,$negated_postgres,$negated_oracle,$negated_mongodb,$negated_sqlserver,$negated_tidb,$negated_oceanbase,$negated_db2,$negated_e2e"

case ${stage} in
(${STAGE_MYSQL})
Expand All @@ -136,6 +146,9 @@ function get_test_modules_for_stage() {
(${STAGE_OCEANBASE})
echo "-pl $modules_oceanbase"
;;
(${STAGE_DB2})
echo "-pl $modules_db2"
;;
(${STAGE_E2E})
echo "-pl $modules_e2e"
;;
Expand Down

0 comments on commit 848ed19

Please sign in to comment.