Build: #336 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 143 lines of output. Download or view full build log.

21-Oct-2024 21:43:40 Build OpenMRS Platform - OpenMRS Platform - 2.1.x - Build and push #336 (OP-OPM0-JOB1-336) started building on agent xiao.openmrs.org (3), bamboo version: 8.2.4
21-Oct-2024 21:43:40 Remote agent on host xiao.openmrs.org
21-Oct-2024 21:43:40 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1
21-Oct-2024 21:43:40 Executing build OpenMRS Platform - OpenMRS Platform - 2.1.x - Build and push #336 (OP-OPM0-JOB1-336)
21-Oct-2024 21:43:40 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
21-Oct-2024 21:43:40 Build always requires a clean checkout
21-Oct-2024 21:43:40 Cleaning build directory '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1'
21-Oct-2024 21:43:40 Build always requires a clean checkout
21-Oct-2024 21:43:40 Cleaning build directory '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/release-scripts'
21-Oct-2024 21:43:40 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1
21-Oct-2024 21:43:40 Updating source code to revision: a199c68baea02e5a98eebd73269c8fb299d4b318
21-Oct-2024 21:43:40 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/.git'.
21-Oct-2024 21:43:40 hint: Using 'master' as the name for the initial branch. This default branch name
21-Oct-2024 21:43:40 hint: is subject to change. To configure the initial branch name to use in all
21-Oct-2024 21:43:40 hint: of your new repositories, which will suppress this warning, call:
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint:         git config --global init.defaultBranch <name>
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
21-Oct-2024 21:43:40 hint: 'development'. The just-created branch can be renamed via this command:
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint:         git branch -m <name>
21-Oct-2024 21:43:40 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/.git/
21-Oct-2024 21:43:40 Fetching 'refs/heads/2.1.x' from 'https://github.com/openmrs/openmrs-distro-platform'. Will try to do a shallow fetch.
21-Oct-2024 21:43:40 From https://github.com/openmrs/openmrs-distro-platform
21-Oct-2024 21:43:40 * [new branch]      2.1.x      -> 2.1.x
21-Oct-2024 21:43:40 Checking out revision a199c68baea02e5a98eebd73269c8fb299d4b318.
21-Oct-2024 21:43:40 Switched to branch '2.1.x'
21-Oct-2024 21:43:40 Updated source code to revision: a199c68baea02e5a98eebd73269c8fb299d4b318
21-Oct-2024 21:43:40 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/release-scripts
21-Oct-2024 21:43:40 Updating source code to revision: ced9ff00825ca1cb8c744547be4ba8ff994bd71b
21-Oct-2024 21:43:40 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/release-scripts/.git'.
21-Oct-2024 21:43:40 hint: Using 'master' as the name for the initial branch. This default branch name
21-Oct-2024 21:43:40 hint: is subject to change. To configure the initial branch name to use in all
21-Oct-2024 21:43:40 hint: of your new repositories, which will suppress this warning, call:
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint:         git config --global init.defaultBranch <name>
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
21-Oct-2024 21:43:40 hint: 'development'. The just-created branch can be renamed via this command:
21-Oct-2024 21:43:40 hint:
21-Oct-2024 21:43:40 hint:         git branch -m <name>
21-Oct-2024 21:43:40 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1/release-scripts/.git/
21-Oct-2024 21:43:40 Fetching 'refs/heads/master' from 'https://github.com/openmrs/openmrs-contrib-bamboo.git'.
21-Oct-2024 21:43:41 From https://github.com/openmrs/openmrs-contrib-bamboo
21-Oct-2024 21:43:41 * [new branch]      master     -> master
21-Oct-2024 21:43:41 Checking out revision ced9ff00825ca1cb8c744547be4ba8ff994bd71b.
21-Oct-2024 21:43:41 Already on 'master'
21-Oct-2024 21:43:41 Updated source code to revision: ced9ff00825ca1cb8c744547be4ba8ff994bd71b
21-Oct-2024 21:43:41 Finished task 'Checkout Default Repository' with result: Success
21-Oct-2024 21:43:41 Running pre-build action: Build Log Labeller Pre Build Action
21-Oct-2024 21:43:41 Running pre-build action: VCS Version Collector
21-Oct-2024 21:43:41 Running pre-build action: Run Predator
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1295 java        1258 bamboo-age 2959Mb  341Mb 00:03:55 /usr/lib/jvm/java-8-ope
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1258 wrapper        1 bamboo-age   16Mb    2Mb 00:00:56 /home/bamboo-agent/bamb
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        163Mb   10Mb 00:00:04 /sbin/init             
21-Oct-2024 21:43:41 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Initial free space: 5.9447746 GB
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM2-JOB1
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Deleting 0 snapshot folders from /home/bamboo-agent/.m2/repository
21-Oct-2024 21:43:41 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
21-Oct-2024 21:43:41 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
21-Oct-2024 21:43:42 [PredatorPreBuildAction] Maven stable disk freed: 0.0 GB, deleted 0 files
21-Oct-2024 21:43:42 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
21-Oct-2024 21:43:42 [PredatorPreBuildAction] Deleting file /home/bamboo-agent/.docker/config.json
21-Oct-2024 21:43:42 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
21-Oct-2024 21:43:42 [PredatorPreBuildAction] Final free space: 5.9452515 GB
21-Oct-2024 21:43:42 [PredatorPreBuildAction] Done
21-Oct-2024 21:43:42
Substituting variable: ${bamboo.dockerhub.username} with openmrsci
21-Oct-2024 21:43:42
Substituting password variable: ${bamboo.dockerhub.password}
21-Oct-2024 21:43:42
Substituting variable: ${bamboo.docker.image.name} with openmrs/openmrs-platform
21-Oct-2024 21:43:42
Substituting variable: ${bamboo.docker.image.name} with openmrs/openmrs-platform
21-Oct-2024 21:43:42
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
21-Oct-2024 21:43:42
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
21-Oct-2024 21:43:42 Starting task 'Build and deploy' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
21-Oct-2024 21:43:42
Beginning to execute external process for build 'OpenMRS Platform - OpenMRS Platform - 2.1.x - Build and push #336 (OP-OPM0-JOB1-336)'
... running command line:
/home/bamboo-agent/bamboo-agent/temp/OP-OPM0-JOB1-336-ScriptBuildTask-1911646359689933883.sh
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OPM0-JOB1
21-Oct-2024 21:43:42 + [[ ehuB != ehuxB ]]
21-Oct-2024 21:43:42 + echo 'Start of Lmod init/bash script to define the module command'
21-Oct-2024 21:43:42 + LMOD_PKG=/usr/share/lmod/lmod
21-Oct-2024 21:43:42 + LMOD_DIR=/usr/share/lmod/lmod/libexec
21-Oct-2024 21:43:42 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
21-Oct-2024 21:43:42 + MODULESHOME=/usr/share/lmod/lmod
21-Oct-2024 21:43:42 + export LMOD_PKG
21-Oct-2024 21:43:42 + export LMOD_CMD
21-Oct-2024 21:43:42 + export LMOD_DIR
21-Oct-2024 21:43:42 + export MODULESHOME
21-Oct-2024 21:43:42 + LMOD_VERSION=6.6
21-Oct-2024 21:43:42 + export LMOD_VERSION
21-Oct-2024 21:43:42 + '[' : '!=' : ']'
21-Oct-2024 21:43:42 + unalias ml
21-Oct-2024 21:43:42 + true
21-Oct-2024 21:43:42 Start of Lmod init/bash script to define the module command
21-Oct-2024 21:43:42 ++ echo YES
21-Oct-2024 21:43:42 ++ /usr/bin/tr '[:upper:]' '[:lower:]'
21-Oct-2024 21:43:42 + export_module=yes
21-Oct-2024 21:43:42 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']'
21-Oct-2024 21:43:42 + export -f module
21-Oct-2024 21:43:42 + export -f ml
21-Oct-2024 21:43:42 + unset export_module
21-Oct-2024 21:43:42 + '[' -n '' ']'
21-Oct-2024 21:43:42 + '[' 5 -ge 3 ']'
21-Oct-2024 21:43:42 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']'
21-Oct-2024 21:43:42 + '[' -n '' ']'
21-Oct-2024 21:43:42 + [[ ehuB != ehuxB ]]
21-Oct-2024 21:43:42 + echo 'End of Lmod init/bash script to define the module command'
21-Oct-2024 21:43:42 End of Lmod init/bash script to define the module command
21-Oct-2024 21:43:42 + set +x
21-Oct-2024 21:43:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin.
21-Oct-2024 21:43:42 WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
21-Oct-2024 21:43:42 Configure a credential helper to remove this warning. See
21-Oct-2024 21:43:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store
21-Oct-2024 21:43:42
21-Oct-2024 21:43:42 Login Succeeded
21-Oct-2024 21:43:42 Building dev image
21-Oct-2024 21:43:42 #1 [internal] load build definition from Dockerfile
21-Oct-2024 21:43:42 #1 transferring dockerfile: 2B done
21-Oct-2024 21:43:42 #1 DONE 0.1s
21-Oct-2024 21:43:43 error: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
21-Oct-2024 21:43:43 Failing task since return code of [/home/bamboo-agent/bamboo-agent/temp/OP-OPM0-JOB1-336-ScriptBuildTask-1911646359689933883.sh] was 1 while expected 0
21-Oct-2024 21:43:43 Finished task 'Build and deploy' with result: Failed
21-Oct-2024 21:43:43 Running post build plugin 'Docker Container Cleanup'
21-Oct-2024 21:43:43 Running post build plugin 'NCover Results Collector'
21-Oct-2024 21:43:43 Running post build plugin 'Build Results Label Collector'
21-Oct-2024 21:43:43 Running post build plugin 'Clover Results Collector'
21-Oct-2024 21:43:43 Running post build plugin 'npm Cache Cleanup'
21-Oct-2024 21:43:43 Running post build plugin 'Artifact Copier'
21-Oct-2024 21:43:43 Finalising the build...
21-Oct-2024 21:43:43 Stopping timer.
21-Oct-2024 21:43:43 Build OP-OPM0-JOB1-336 completed.
21-Oct-2024 21:43:43 Running on server: post build plugin 'Build Hanging Detection Configuration'
21-Oct-2024 21:43:43 Running on server: post build plugin 'NCover Results Collector'
21-Oct-2024 21:43:43 Running on server: post build plugin 'Build Labeller'
21-Oct-2024 21:43:43 Running on server: post build plugin 'Clover Delta Calculator'
21-Oct-2024 21:43:43 Running on server: post build plugin 'Maven Dependencies Postprocessor'
21-Oct-2024 21:43:43 All post build plugins have finished
21-Oct-2024 21:43:43 Generating build results summary...
21-Oct-2024 21:43:43 Saving build results to disk...
21-Oct-2024 21:43:43 Store variable context...
21-Oct-2024 21:43:43 Finished building OP-OPM0-JOB1-336.