@@ -23,10 +23,10 @@ node('docker') {
2323 stage(' Build and publish Docker images in CI repository' ) {
2424 echo ' Building images ...'
2525 unstash ' jars'
26- def auth = docker. build(' devicehiveci/devicehive-auth-rdbms :${BRANCH_NAME}' , ' -f dockerfiles/devicehive-auth-rdbms .Dockerfile .' )
27- def plugin = docker. build(' devicehiveci/devicehive-plugin-rdbms :${BRANCH_NAME}' , ' -f dockerfiles/devicehive-plugin-rdbms .Dockerfile .' )
28- def frontend = docker. build(' devicehiveci/devicehive-frontend-rdbms :${BRANCH_NAME}' , ' -f dockerfiles/devicehive-frontend-rdbms .Dockerfile .' )
29- def backend = docker. build(' devicehiveci/devicehive-backend-rdbms :${BRANCH_NAME}' , ' -f dockerfiles/devicehive-backend-rdbms .Dockerfile .' )
26+ def auth = docker. build(' devicehiveci/devicehive-auth:${BRANCH_NAME}' , ' -f dockerfiles/devicehive-auth.Dockerfile .' )
27+ def plugin = docker. build(' devicehiveci/devicehive-plugin:${BRANCH_NAME}' , ' -f dockerfiles/devicehive-plugin.Dockerfile .' )
28+ def frontend = docker. build(' devicehiveci/devicehive-frontend:${BRANCH_NAME}' , ' -f dockerfiles/devicehive-frontend.Dockerfile .' )
29+ def backend = docker. build(' devicehiveci/devicehive-backend:${BRANCH_NAME}' , ' -f dockerfiles/devicehive-backend.Dockerfile .' )
3030 def hazelcast = docker. build(' devicehiveci/devicehive-hazelcast:${BRANCH_NAME}' , ' -f dockerfiles/devicehive-hazelcast.Dockerfile .' )
3131
3232 echo ' Pushing images to CI repository ...'
@@ -63,9 +63,9 @@ if (publishable_branches.contains(env.BRANCH_NAME)) {
6363 }
6464
6565 echo(" Wait for devicehive" )
66- timeout(time :2 , unit : ' MINUTES' ) {
66+ timeout(time :5 , unit : ' MINUTES' ) {
6767 waitUntil{
68- def fe_status = sh script : ' curl --output /dev/null --silent --head --fail "http://127.0.0.1:8080 /api/rest/info"' , returnStatus : true
68+ def fe_status = sh script : ' curl --output /dev/null --silent --head --fail "http://127.0.0.1/api/rest/info"' , returnStatus : true
6969 return (fe_status == 0 )
7070 }
7171 }
@@ -84,11 +84,11 @@ if (publishable_branches.contains(env.BRANCH_NAME)) {
8484 sh '''
8585 cp config.json config.json.orig
8686 cat config.json.orig | \\
87- jq ".server.wsUrl = \\ "ws://127.0.0.1:8080 /api/websocket\\ "" | \\
87+ jq ".server.wsUrl = \\ "ws://127.0.0.1/api/websocket\\ "" | \\
8888 jq ".server.ip = \\ "127.0.0.1\\ "" | \\
89- jq ".server.port = \\ "8080 \\ "" | \\
90- jq ".server.restUrl = \\ "http://127.0.0.1:8080 /api/rest\\ "" | \\
91- jq ".server.authRestUrl = \\ "http://127.0.0.1:8090/api /rest\\ "" > config.json
89+ jq ".server.port = \\ "80 \\ "" | \\
90+ jq ".server.restUrl = \\ "http://127.0.0.1/api/rest\\ "" | \\
91+ jq ".server.authRestUrl = \\ "http://127.0.0.1/auth /rest\\ "" > config.json
9292 '''
9393
9494 timeout(time :10 , unit : ' MINUTES' ) {
@@ -117,17 +117,17 @@ if (publishable_branches.contains(env.BRANCH_NAME)) {
117117
118118 docker. withRegistry(' https://registry.hub.docker.com' , ' devicehiveci_dockerhub' ){
119119 sh """
120- docker tag devicehiveci/devicehive-auth-rdbms :${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-auth-rdbms :${ IMAGE_TAG}
121- docker tag devicehiveci/devicehive-frontend-rdbms :${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-frontend-rdbms :${ IMAGE_TAG}
122- docker tag devicehiveci/devicehive-backend-rdbms :${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-backend-rdbms :${ IMAGE_TAG}
120+ docker tag devicehiveci/devicehive-auth:${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-auth:${ IMAGE_TAG}
121+ docker tag devicehiveci/devicehive-frontend:${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-frontend:${ IMAGE_TAG}
122+ docker tag devicehiveci/devicehive-backend:${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-backend:${ IMAGE_TAG}
123123 docker tag devicehiveci/devicehive-hazelcast:${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-hazelcast:${ IMAGE_TAG}
124- docker tag devicehiveci/devicehive-plugin-rdbms :${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-plugin-rdbms :${ IMAGE_TAG}
124+ docker tag devicehiveci/devicehive-plugin:${ BRANCH_NAME} registry.hub.docker.com/devicehive/devicehive-plugin:${ IMAGE_TAG}
125125
126- docker push registry.hub.docker.com/devicehive/devicehive-auth-rdbms :${ IMAGE_TAG}
127- docker push registry.hub.docker.com/devicehive/devicehive-frontend-rdbms :${ IMAGE_TAG}
128- docker push registry.hub.docker.com/devicehive/devicehive-backend-rdbms :${ IMAGE_TAG}
126+ docker push registry.hub.docker.com/devicehive/devicehive-auth:${ IMAGE_TAG}
127+ docker push registry.hub.docker.com/devicehive/devicehive-frontend:${ IMAGE_TAG}
128+ docker push registry.hub.docker.com/devicehive/devicehive-backend:${ IMAGE_TAG}
129129 docker push registry.hub.docker.com/devicehive/devicehive-hazelcast:${ IMAGE_TAG}
130- docker push registry.hub.docker.com/devicehive/devicehive-plugin-rdbms :${ IMAGE_TAG}
130+ docker push registry.hub.docker.com/devicehive/devicehive-plugin:${ IMAGE_TAG}
131131 """
132132 }
133133 }
0 commit comments