Plan responsible for building Docker images for the 3.x demo and development sites

Build: #2246 failed

Job: Build Gateway was successful

Stages & jobs

  1. Build

  2. Deploy

  3. Generate pre-filled Docker Images

  4. Run E2E tests

Build log

The build generated 220 lines of output. Download or view full build log.

26-Jan-2024 15:58:51 Build Reference Application - Distribution 3.x - Build Gateway #2246 (REFAPP-D3X-GTW-2246) started building on agent xindi.openmrs.org (3), bamboo version: 8.2.4
26-Jan-2024 15:58:51 Remote agent on host xindi.openmrs.org
26-Jan-2024 15:58:51 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 15:58:51 Executing build Reference Application - Distribution 3.x - Build Gateway #2246 (REFAPP-D3X-GTW-2246)
26-Jan-2024 15:58:51 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
26-Jan-2024 15:58:51 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 15:58:51 Updating source code to revision: 4c287cbca358d34393d81bced1be4a550e362217
26-Jan-2024 15:58:51 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW/.git'.
26-Jan-2024 15:58:51 hint: Using 'master' as the name for the initial branch. This default branch name
26-Jan-2024 15:58:51 hint: is subject to change. To configure the initial branch name to use in all
26-Jan-2024 15:58:51 hint: of your new repositories, which will suppress this warning, call:
26-Jan-2024 15:58:51 hint:
26-Jan-2024 15:58:51 hint:         git config --global init.defaultBranch <name>
26-Jan-2024 15:58:51 hint:
26-Jan-2024 15:58:51 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
26-Jan-2024 15:58:51 hint: 'development'. The just-created branch can be renamed via this command:
26-Jan-2024 15:58:51 hint:
26-Jan-2024 15:58:51 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW/.git/
26-Jan-2024 15:58:51 hint:         git branch -m <name>
26-Jan-2024 15:58:51 Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-distro-referenceapplication.git'.
26-Jan-2024 15:58:52 From https://github.com/openmrs/openmrs-distro-referenceapplication
26-Jan-2024 15:58:52 * [new branch]      main       -> main
26-Jan-2024 15:58:52 * [new tag]         2.0.1769      -> 2.0.1769
26-Jan-2024 15:58:52 * [new tag]         2.1           -> 2.1
26-Jan-2024 15:58:52 * [new tag]         2.10.0        -> 2.10.0
26-Jan-2024 15:58:52 * [new tag]         2.2           -> 2.2
26-Jan-2024 15:58:52 * [new tag]         2.3           -> 2.3
26-Jan-2024 15:58:52 * [new tag]         2.4           -> 2.4
26-Jan-2024 15:58:52 * [new tag]         2.5           -> 2.5
26-Jan-2024 15:58:52 * [new tag]         2.6.0         -> 2.6.0
26-Jan-2024 15:58:52 * [new tag]         2.7.0         -> 2.7.0
26-Jan-2024 15:58:52 * [new tag]         2.8.0         -> 2.8.0
26-Jan-2024 15:58:52 * [new tag]         2.8.1         -> 2.8.1
26-Jan-2024 15:58:52 * [new tag]         2.9.0         -> 2.9.0
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.2 -> 3.0.0-alpha.2
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.3 -> 3.0.0-alpha.3
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.4 -> 3.0.0-alpha.4
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.5 -> 3.0.0-alpha.5
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.6 -> 3.0.0-alpha.6
26-Jan-2024 15:58:52 * [new tag]         3.0.0-alpha.7 -> 3.0.0-alpha.7
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.1  -> 3.0.0-beta.1
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.10 -> 3.0.0-beta.10
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.11 -> 3.0.0-beta.11
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.12 -> 3.0.0-beta.12
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.13 -> 3.0.0-beta.13
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.14 -> 3.0.0-beta.14
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.15 -> 3.0.0-beta.15
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.16 -> 3.0.0-beta.16
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.2  -> 3.0.0-beta.2
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.3  -> 3.0.0-beta.3
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.4  -> 3.0.0-beta.4
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.5  -> 3.0.0-beta.5
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.6  -> 3.0.0-beta.6
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.7  -> 3.0.0-beta.7
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.8  -> 3.0.0-beta.8
26-Jan-2024 15:58:52 * [new tag]         3.0.0-beta.9  -> 3.0.0-beta.9
26-Jan-2024 15:58:52 * [new tag]         latest        -> latest
26-Jan-2024 15:58:52 Checking out revision 4c287cbca358d34393d81bced1be4a550e362217.
26-Jan-2024 15:58:52 Switched to branch 'main'
26-Jan-2024 15:58:52 Updated source code to revision: 4c287cbca358d34393d81bced1be4a550e362217
26-Jan-2024 15:58:52 Finished task 'Checkout Default Repository' with result: Success
26-Jan-2024 15:58:52 Running pre-build action: Build Log Labeller Pre Build Action
26-Jan-2024 15:58:52 Running pre-build action: VCS Version Collector
26-Jan-2024 15:58:52 Running pre-build action: Run Predator
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  3179 java        1304 bamboo-age 2972Mb  517Mb 00:21:01 /usr/lib/jvm/java-8-ope
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1304 wrapper        1 bamboo-age   16Mb    2Mb 00:05:12 /home/bamboo-agent/bamb
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        100Mb   11Mb 00:00:37 /sbin/init             
26-Jan-2024 15:58:52 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Initial free space: 5.8247375 GB
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-PFA-JOB1
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Deleting 22 snapshot folders from /home/bamboo-agent/.m2/repository
26-Jan-2024 15:58:52 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
26-Jan-2024 15:58:53 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
26-Jan-2024 15:58:53 [PredatorPreBuildAction] Maven stable disk freed: 0.8863411 GB, deleted 654 files
26-Jan-2024 15:58:53 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
26-Jan-2024 15:58:53 [PredatorPreBuildAction] Deleting file /home/bamboo-agent/.docker/config.json
26-Jan-2024 15:58:53 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
26-Jan-2024 15:58:53 [PredatorPreBuildAction] Final free space: 5.8263702 GB
26-Jan-2024 15:58:53 [PredatorPreBuildAction] Done
26-Jan-2024 15:58:53
Substituting variable: ${bamboo.dockerhub.username} with openmrsci
26-Jan-2024 15:58:53
Substituting password variable: ${bamboo.dockerhub.password}
26-Jan-2024 15:58:53
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
26-Jan-2024 15:58:53 Starting task 'Build and publish image' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
26-Jan-2024 15:58:53
Beginning to execute external process for build 'Reference Application - Distribution 3.x - Build Gateway #2246 (REFAPP-D3X-GTW-2246)'
... running command line:
/home/bamboo-agent/bamboo-agent/temp/REFAPP-D3X-GTW-2246-ScriptBuildTask-3882638459899928809.sh
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 15:58:53 + [[ ehuB != ehuxB ]]
26-Jan-2024 15:58:53 + echo 'Start of Lmod init/bash script to define the module command'
26-Jan-2024 15:58:53 Start of Lmod init/bash script to define the module command
26-Jan-2024 15:58:53 + LMOD_PKG=/usr/share/lmod/lmod
26-Jan-2024 15:58:53 + LMOD_DIR=/usr/share/lmod/lmod/libexec
26-Jan-2024 15:58:53 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
26-Jan-2024 15:58:53 + MODULESHOME=/usr/share/lmod/lmod
26-Jan-2024 15:58:53 + export LMOD_PKG
26-Jan-2024 15:58:53 + export LMOD_CMD
26-Jan-2024 15:58:53 + export LMOD_DIR
26-Jan-2024 15:58:53 + export MODULESHOME
26-Jan-2024 15:58:53 + LMOD_VERSION=6.6
26-Jan-2024 15:58:53 + export LMOD_VERSION
26-Jan-2024 15:58:53 + '[' : '!=' : ']'
26-Jan-2024 15:58:53 + unalias ml
26-Jan-2024 15:58:53 + true
26-Jan-2024 15:58:53 ++ echo YES
26-Jan-2024 15:58:53 ++ /usr/bin/tr '[:upper:]' '[:lower:]'
26-Jan-2024 15:58:53 + export_module=yes
26-Jan-2024 15:58:53 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']'
26-Jan-2024 15:58:53 + export -f module
26-Jan-2024 15:58:53 + export -f ml
26-Jan-2024 15:58:53 + unset export_module
26-Jan-2024 15:58:53 + '[' -n '' ']'
26-Jan-2024 15:58:53 + '[' 5 -ge 3 ']'
26-Jan-2024 15:58:53 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']'
26-Jan-2024 15:58:53 + '[' -n '' ']'
26-Jan-2024 15:58:53 + [[ ehuB != ehuxB ]]
26-Jan-2024 15:58:53 + echo 'End of Lmod init/bash script to define the module command'
26-Jan-2024 15:58:53 + export IMAGE=openmrs/openmrs-reference-application-3-gateway
26-Jan-2024 15:58:53 + IMAGE=openmrs/openmrs-reference-application-3-gateway
26-Jan-2024 15:58:53 + docker login -u openmrsci -p ********
26-Jan-2024 15:58:53 End of Lmod init/bash script to define the module command
26-Jan-2024 15:58:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin.
26-Jan-2024 15:58:53 WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
26-Jan-2024 15:58:53 Configure a credential helper to remove this warning. See
26-Jan-2024 15:58:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store
26-Jan-2024 15:58:53
26-Jan-2024 15:58:53 Login Succeeded
26-Jan-2024 15:58:53 + docker buildx build --pull --push --platform linux/amd64,linux/arm64 -t openmrs/openmrs-reference-application-3-gateway:nightly -t openmrs/openmrs-reference-application-3-gateway:dev3 gateway/
26-Jan-2024 15:58:53 #1 [internal] load build definition from Dockerfile
26-Jan-2024 15:58:53 #1 transferring dockerfile: 205B done
26-Jan-2024 15:58:53 #1 DONE 0.0s
26-Jan-2024 15:58:53
26-Jan-2024 15:58:53 #2 [auth] docker/dockerfile:pull token for registry-1.docker.io
26-Jan-2024 15:58:53 #2 DONE 0.0s
26-Jan-2024 15:58:53
26-Jan-2024 15:58:53 #3 resolve image config for docker.io/docker/dockerfile:1.3
26-Jan-2024 15:58:54 #3 DONE 0.3s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #4 docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
26-Jan-2024 15:58:54 #4 resolve docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 0.0s done
26-Jan-2024 15:58:54 #4 CACHED
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #5 [internal] load .dockerignore
26-Jan-2024 15:58:54 #5 transferring context: 2B done
26-Jan-2024 15:58:54 #5 DONE 0.0s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #6 [auth] library/nginx:pull token for registry-1.docker.io
26-Jan-2024 15:58:54 #6 DONE 0.0s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #7 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.25-alpine
26-Jan-2024 15:58:54 #7 DONE 0.2s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #8 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.25-alpine
26-Jan-2024 15:58:54 #8 DONE 0.2s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #9 [internal] load build context
26-Jan-2024 15:58:54 #9 transferring context: 3.48kB done
26-Jan-2024 15:58:54 #9 DONE 0.0s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #10 [linux/arm64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 15:58:54 #10 resolve docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59 0.1s done
26-Jan-2024 15:58:54 #10 DONE 0.1s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #11 [linux/arm64 2/3] COPY nginx.conf /etc/nginx/nginx.conf
26-Jan-2024 15:58:54 #11 CACHED
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #12 [linux/arm64 3/3] COPY default.conf.template /etc/nginx/templates/
26-Jan-2024 15:58:54 #12 CACHED
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #13 [linux/amd64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 15:58:54 #13 resolve docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59 0.1s done
26-Jan-2024 15:58:54 #13 DONE 0.1s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #14 [linux/amd64 2/3] COPY nginx.conf /etc/nginx/nginx.conf
26-Jan-2024 15:58:54 #14 CACHED
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #15 [linux/amd64 3/3] COPY default.conf.template /etc/nginx/templates/
26-Jan-2024 15:58:54 #15 CACHED
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #16 exporting to image
26-Jan-2024 15:58:54 #16 exporting layers done
26-Jan-2024 15:58:54 #16 exporting manifest sha256:dfe0e9fece4a94389228b37087dece0d8b60e5c0c4dfec4cdbc935fdbce65372 done
26-Jan-2024 15:58:54 #16 exporting config sha256:c0051f41c758c5cb612334d5c90da04dd4e2fa5bf95eb4a9328731ef585f1263 0.0s done
26-Jan-2024 15:58:54 #16 ...
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #17 [auth] openmrs/openmrs-reference-application-3-gateway:pull,push token for registry-1.docker.io
26-Jan-2024 15:58:54 #17 DONE 0.0s
26-Jan-2024 15:58:54
26-Jan-2024 15:58:54 #16 exporting to image
26-Jan-2024 15:58:54 #16 exporting manifest sha256:bdb196aca406498d387b6e7d715609eaa8197d22e23282b5ff75899f26382a43 0.0s done
26-Jan-2024 15:58:54 #16 exporting config sha256:f716d1b66ccf6f9ce56be65a2b6ba95bd325294143ef1874ea44f39a49dd2dbe 0.0s done
26-Jan-2024 15:58:54 #16 exporting manifest list sha256:3e605f22b4416584dead97dbc4c2a5c7803af3ffad375fe3ade468020ea6fa0f 0.0s done
26-Jan-2024 15:58:54 #16 pushing layers
26-Jan-2024 15:58:55 #16 pushing layers 0.8s done
26-Jan-2024 15:58:55 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:nightly@sha256:3e605f22b4416584dead97dbc4c2a5c7803af3ffad375fe3ade468020ea6fa0f
26-Jan-2024 15:58:55 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:nightly@sha256:3e605f22b4416584dead97dbc4c2a5c7803af3ffad375fe3ade468020ea6fa0f 0.3s done
26-Jan-2024 15:58:56 #16 pushing layers 0.4s done
26-Jan-2024 15:58:56 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:dev3@sha256:3e605f22b4416584dead97dbc4c2a5c7803af3ffad375fe3ade468020ea6fa0f
26-Jan-2024 15:58:56 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:dev3@sha256:3e605f22b4416584dead97dbc4c2a5c7803af3ffad375fe3ade468020ea6fa0f 0.2s done
26-Jan-2024 15:58:56 #16 DONE 1.7s
26-Jan-2024 15:58:56 Finished task 'Build and publish image' with result: Success
26-Jan-2024 15:58:56 Running post build plugin 'Docker Container Cleanup'
26-Jan-2024 15:58:56 Running post build plugin 'NCover Results Collector'
26-Jan-2024 15:58:56 Running post build plugin 'Build Results Label Collector'
26-Jan-2024 15:58:56 Running post build plugin 'Clover Results Collector'
26-Jan-2024 15:58:56 Running post build plugin 'npm Cache Cleanup'
26-Jan-2024 15:58:56 Running post build plugin 'Artifact Copier'
26-Jan-2024 15:58:56 Finalising the build...
26-Jan-2024 15:58:56 Stopping timer.
26-Jan-2024 15:58:56 Build REFAPP-D3X-GTW-2246 completed.
26-Jan-2024 15:58:56 Running on server: post build plugin 'Build Hanging Detection Configuration'
26-Jan-2024 15:58:56 Running on server: post build plugin 'NCover Results Collector'
26-Jan-2024 15:58:56 Running on server: post build plugin 'Build Labeller'
26-Jan-2024 15:58:56 Running on server: post build plugin 'Clover Delta Calculator'
26-Jan-2024 15:58:56 Running on server: post build plugin 'Maven Dependencies Postprocessor'
26-Jan-2024 15:58:56 All post build plugins have finished
26-Jan-2024 15:58:56 Generating build results summary...
26-Jan-2024 15:58:56 Saving build results to disk...
26-Jan-2024 15:58:56 Store variable context...
26-Jan-2024 15:58:56 Finished building REFAPP-D3X-GTW-2246.