Build: #307 failed

Job: Build and push failed

Stages & jobs

  1. Build and push

  2. Validate

  3. Update versions

  4. Release

    Requires a user to start manually
  5. Release 2nd stage

  6. Release 3rd stage

Build log

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

01-Jul-2025 20:07:53 Build OpenMRS Platform - OpenMRS Platform - 2.2.x - Build and push #307 (OP-OPM6-JOB1-307) is being prepared for building on agent yu.openmrs.org (2), bamboo version: 11.0.2
01-Jul-2025 20:07:53 Remote agent on host yu.openmrs.org
01-Jul-2025 20:07:53 Build working directory is /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1
01-Jul-2025 20:07:53 Executing build OpenMRS Platform - OpenMRS Platform - 2.2.x - Build and push #307 (OP-OPM6-JOB1-307)
01-Jul-2025 20:07:53 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
01-Jul-2025 20:07:53 Build always requires a clean checkout
01-Jul-2025 20:07:53 Cleaning build directory '/root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1'
01-Jul-2025 20:07:53 Build always requires a clean checkout
01-Jul-2025 20:07:53 Cleaning build directory '/root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/release-scripts'
01-Jul-2025 20:07:53 Checking out into /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1
01-Jul-2025 20:07:53 Updating source code to revision: 628c02f7d1e429ba96e196c7fdc30db4eea68fa5
01-Jul-2025 20:07:53 Creating local git repository in '/root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/.git'.
01-Jul-2025 20:07:53 hint: Using 'master' as the name for the initial branch. This default branch name
01-Jul-2025 20:07:53 hint: is subject to change. To configure the initial branch name to use in all
01-Jul-2025 20:07:53 hint: of your new repositories, which will suppress this warning, call:
01-Jul-2025 20:07:53 hint:
01-Jul-2025 20:07:53 hint:         git config --global init.defaultBranch <name>
01-Jul-2025 20:07:53 hint:
01-Jul-2025 20:07:53 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
01-Jul-2025 20:07:53 hint: 'development'. The just-created branch can be renamed via this command:
01-Jul-2025 20:07:53 hint:
01-Jul-2025 20:07:53 hint:         git branch -m <name>
01-Jul-2025 20:07:53 Initialized empty Git repository in /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/.git/
01-Jul-2025 20:07:53 Fetching 'refs/heads/2.2.x' from 'https://github.com/openmrs/openmrs-distro-platform Will try to do a shallow fetch.'.
01-Jul-2025 20:07:54 Checking out revision 628c02f7d1e429ba96e196c7fdc30db4eea68fa5.
01-Jul-2025 20:07:54 Switched to branch '2.2.x'
01-Jul-2025 20:07:54 Updated source code to revision: 628c02f7d1e429ba96e196c7fdc30db4eea68fa5
01-Jul-2025 20:07:54 Checking out into /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/release-scripts
01-Jul-2025 20:07:54 Updating source code to revision: d5831e94deff58c79f07afa118e3aad928391687
01-Jul-2025 20:07:54 Creating local git repository in '/root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/release-scripts/.git'.
01-Jul-2025 20:07:54 hint: Using 'master' as the name for the initial branch. This default branch name
01-Jul-2025 20:07:54 hint: is subject to change. To configure the initial branch name to use in all
01-Jul-2025 20:07:54 hint: of your new repositories, which will suppress this warning, call:
01-Jul-2025 20:07:54 hint:
01-Jul-2025 20:07:54 hint:         git config --global init.defaultBranch <name>
01-Jul-2025 20:07:54 hint:
01-Jul-2025 20:07:54 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
01-Jul-2025 20:07:54 hint: 'development'. The just-created branch can be renamed via this command:
01-Jul-2025 20:07:54 hint:
01-Jul-2025 20:07:54 hint:         git branch -m <name>
01-Jul-2025 20:07:54 Initialized empty Git repository in /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1/release-scripts/.git/
01-Jul-2025 20:07:54 Fetching 'refs/heads/master' from 'https://github.com/openmrs/openmrs-contrib-bamboo.git'.
01-Jul-2025 20:07:54 Checking out revision d5831e94deff58c79f07afa118e3aad928391687.
01-Jul-2025 20:07:54 Already on 'master'
01-Jul-2025 20:07:54 Updated source code to revision: d5831e94deff58c79f07afa118e3aad928391687
01-Jul-2025 20:07:54 Finished task 'Checkout Default Repository' with result: Success
01-Jul-2025 20:07:54 Running pre-build action: Build Log Labeller Pre Build Action
01-Jul-2025 20:07:54 Running pre-build action: VCS Version Collector
01-Jul-2025 20:07:54 Running pre-build action: Run Predator
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 42359 java       42356 root       3167Mb  502Mb 00:05:58 /usr/lib/jvm/java-21-op
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 42356 wrapper    42349 root         88Mb    4Mb 00:02:03 /root/bamboo-agent-home
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 42349 bamboo     42338 root          3Mb    1Mb 00:00:00 /bin/sh /root/bamboo-ag
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 42338 java           1 root       4038Mb   60Mb 00:01:37 java -jar atlassian-bam
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root         99Mb   11Mb 00:01:39 /sbin/init             
01-Jul-2025 20:07:54 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Initial free space: 2.056385 GB
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Deleting folder /root/bamboo-agent-home/xml-data/build-dir/OP-OPM7-JOB1
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Deleting folder /root/bamboo-agent-home/xml-data/build-dir/temporaryArtifactStorage
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Maven local repository /root/.m2/repositorydoesn't exist, skipping the removal of maven snapshots
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Maven local repository /root/.m2/repositorydoesn't exist, skipping the removal of empty artifacts
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Maven local repository /root/.m2/repositorydoesn't exist, skipping the removal of maven snapshots
01-Jul-2025 20:07:54 [PredatorPreBuildAction] File /root/.npmrc does not exist.
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Deleting file /root/.docker/config.json
01-Jul-2025 20:07:54 [PredatorPreBuildAction] File /root/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Final free space: 2.0568848 GB
01-Jul-2025 20:07:54 [PredatorPreBuildAction] Done
01-Jul-2025 20:07:54 Build OpenMRS Platform - OpenMRS Platform - 2.2.x - Build and push #307 (OP-OPM6-JOB1-307) started building on agent 'yu.openmrs.org (2)' (Remote agent on host yu.openmrs.org)
01-Jul-2025 20:07:54
Substituting variable: ${bamboo.dockerhub.username} with openmrsci
01-Jul-2025 20:07:54
Substituting password variable: ${bamboo.dockerhub.password}
01-Jul-2025 20:07:54
Substituting variable: ${bamboo.docker.image.name} with openmrs/openmrs-platform
01-Jul-2025 20:07:54
Substituting variable: ${bamboo.docker.image.name} with openmrs/openmrs-platform
01-Jul-2025 20:07:54
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
01-Jul-2025 20:07:54
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
01-Jul-2025 20:07:54 Starting task 'Build and deploy' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
01-Jul-2025 20:07:54
Beginning to execute external process for build 'OpenMRS Platform - OpenMRS Platform - 2.2.x - Build and push #307 (OP-OPM6-JOB1-307)'
... running command line:
/root/bamboo-agent-home/temp/OP-OPM6-JOB1-307-ScriptBuildTask-7920865829650517025.sh
... in: /root/bamboo-agent-home/xml-data/build-dir/OP-OPM6-JOB1
01-Jul-2025 20:07:54 + [[ ehuB != ehuxB ]]
01-Jul-2025 20:07:54 + echo 'Start of Lmod init/bash script to define the module command'
01-Jul-2025 20:07:54 + LMOD_PKG=/usr/share/lmod/lmod
01-Jul-2025 20:07:54 + LMOD_DIR=/usr/share/lmod/lmod/libexec
01-Jul-2025 20:07:54 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
01-Jul-2025 20:07:54 + MODULESHOME=/usr/share/lmod/lmod
01-Jul-2025 20:07:54 + export LMOD_PKG
01-Jul-2025 20:07:54 + export LMOD_CMD
01-Jul-2025 20:07:54 + export LMOD_DIR
01-Jul-2025 20:07:54 + export MODULESHOME
01-Jul-2025 20:07:54 + LMOD_VERSION=6.6
01-Jul-2025 20:07:54 + export LMOD_VERSION
01-Jul-2025 20:07:54 + '[' : '!=' : ']'
01-Jul-2025 20:07:54 + unalias ml
01-Jul-2025 20:07:54 + true
01-Jul-2025 20:07:54 Start of Lmod init/bash script to define the module command
01-Jul-2025 20:07:54 ++ /usr/bin/tr '[:upper:]' '[:lower:]'
01-Jul-2025 20:07:54 ++ echo YES
01-Jul-2025 20:07:54 + export_module=yes
01-Jul-2025 20:07:54 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']'
01-Jul-2025 20:07:54 + export -f module
01-Jul-2025 20:07:54 + export -f ml
01-Jul-2025 20:07:54 + unset export_module
01-Jul-2025 20:07:54 + '[' -n '' ']'
01-Jul-2025 20:07:54 + '[' 5 -ge 3 ']'
01-Jul-2025 20:07:54 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']'
01-Jul-2025 20:07:54 + '[' -n '' ']'
01-Jul-2025 20:07:54 + [[ ehuB != ehuxB ]]
01-Jul-2025 20:07:54 + echo 'End of Lmod init/bash script to define the module command'
01-Jul-2025 20:07:54 + set +x
01-Jul-2025 20:07:54 End of Lmod init/bash script to define the module command
01-Jul-2025 20:07:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin.
01-Jul-2025 20:07:54 WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
01-Jul-2025 20:07:54 Configure a credential helper to remove this warning. See
01-Jul-2025 20:07:54 https://docs.docker.com/engine/reference/commandline/login/#credential-stores
01-Jul-2025 20:07:54
01-Jul-2025 20:07:54 Login Succeeded
01-Jul-2025 20:07:54 Building dev image
01-Jul-2025 20:07:55 error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
01-Jul-2025 20:07:55 Failing task since return code of [/root/bamboo-agent-home/temp/OP-OPM6-JOB1-307-ScriptBuildTask-7920865829650517025.sh] was 1 while expected 0
01-Jul-2025 20:07:55 Finished task 'Build and deploy' with result: Failed
01-Jul-2025 20:07:55 Running post build plugin 'Docker Container Cleanup'
01-Jul-2025 20:07:55 Running post build plugin 'NCover Results Collector'
01-Jul-2025 20:07:55 Running post build plugin 'Build Results Label Collector'
01-Jul-2025 20:07:55 Running post build plugin 'Clover Results Collector'
01-Jul-2025 20:07:55 Running post build plugin 'npm Cache Cleanup'
01-Jul-2025 20:07:55 Running post build plugin 'Artifact Copier'
01-Jul-2025 20:07:55 Finalising the build...
01-Jul-2025 20:07:55 Stopping timer.
01-Jul-2025 20:07:55 Build OP-OPM6-JOB1-307 completed.
01-Jul-2025 20:07:55 Running on server: post build plugin 'Build Hanging Detection Configuration'
01-Jul-2025 20:07:55 Running on server: post build plugin 'NCover Results Collector'
01-Jul-2025 20:07:55 Running on server: post build plugin 'Build Labeller'
01-Jul-2025 20:07:55 Running on server: post build plugin 'Clover Delta Calculator'
01-Jul-2025 20:07:55 Running on server: post build plugin 'Maven Dependencies Postprocessor'
01-Jul-2025 20:07:55 All post build plugins have finished
01-Jul-2025 20:07:55 Generating build results summary...
01-Jul-2025 20:07:55 Saving build results to disk...
01-Jul-2025 20:07:55 Store variable context...
01-Jul-2025 20:07:55 Finished building OP-OPM6-JOB1-307.