Skip to content

Commit e403dd3

Browse files
authored
K8SPS-445 add router 8.4 auto build (#3544)
1 parent 1ce9ee6 commit e403dd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cloud/jenkins/ps_containers_docker_build.groovy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ void build(String IMAGE_POSTFIX){
2727
docker build --no-cache --squash --progress plain \
2828
-t perconalab/percona-server-mysql-operator:${GIT_PD_BRANCH}-${IMAGE_POSTFIX} \
2929
-f ./percona-server-8.4/Dockerfile ./percona-server-8.4
30+
elif [ "${IMAGE_POSTFIX}" == "router8.4" ]; then
31+
docker build --no-cache --squash --progress plain \
32+
-t perconalab/percona-server-mysql-operator:${GIT_PD_BRANCH}-${IMAGE_POSTFIX} \
33+
-f ./mysql-router/Dockerfile.84 ./mysql-router
3034
elif [ "${IMAGE_POSTFIX}" == "toolkit" ]; then
3135
docker build --no-cache --squash --progress plain \
3236
-t perconalab/percona-server-mysql-operator:${GIT_PD_BRANCH}-${IMAGE_POSTFIX} \
@@ -57,6 +61,8 @@ void checkImageForDocker(String IMAGE_SUFFIX){
5761
PATH_TO_DOCKERFILE="source/haproxy"
5862
elif [ ${IMAGE_SUFFIX} = router8.0 ]; then
5963
PATH_TO_DOCKERFILE="source/mysql-router"
64+
elif [ ${IMAGE_SUFFIX} = router8.4 ]; then
65+
PATH_TO_DOCKERFILE="source/mysql-router"
6066
elif [ ${IMAGE_SUFFIX} = orchestrator ]; then
6167
PATH_TO_DOCKERFILE="source/orchestrator"
6268
fi
@@ -185,6 +191,9 @@ pipeline {
185191
retry(3) {
186192
build('router8.0')
187193
}
194+
retry(3) {
195+
build('router8.4')
196+
}
188197
retry(3) {
189198
build('psmysql8.0')
190199
}
@@ -205,6 +214,7 @@ pipeline {
205214
pushImageToDocker('backup8.0')
206215
pushImageToDocker('backup8.4')
207216
pushImageToDocker('router8.0')
217+
pushImageToDocker('router8.4')
208218
pushImageToDocker('psmysql8.0')
209219
pushImageToDocker('psmysql8.4')
210220
pushImageToDocker('toolkit')
@@ -233,6 +243,11 @@ pipeline {
233243
checkImageForDocker('router8.0')
234244
}
235245
}
246+
stage('router8.4'){
247+
steps {
248+
checkImageForDocker('router8.4')
249+
}
250+
}
236251
stage('psmysql8.0'){
237252
steps {
238253
checkImageForDocker('psmysql8.0')

0 commit comments

Comments
 (0)