Build: #23 failed

Job: Build docker image failed

Stages & jobs

  1. Build

  2. Deploy

    Requires a user to start manually

Build log

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

19-Dec-2022 17:54:20 Build OpenMRS environments - Deploy mdsbuilder - Build docker image #23 (OENV-DM-BUIL-23) started building on agent xiao.openmrs.org (2), bamboo version: 8.2.4
19-Dec-2022 17:54:20 Remote agent on host xiao.openmrs.org
19-Dec-2022 17:54:20 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL
19-Dec-2022 17:54:20 Executing build OpenMRS environments - Deploy mdsbuilder - Build docker image #23 (OENV-DM-BUIL-23)
19-Dec-2022 17:54:20 Starting task 'Source Code Checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
19-Dec-2022 17:54:20 Build always requires a clean checkout
19-Dec-2022 17:54:20 Cleaning build directory '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL'
19-Dec-2022 17:54:20 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL
19-Dec-2022 17:54:20 Updating source code to revision: b96f5fde9fc2bc217b48adaeed49e2278b35edcf
19-Dec-2022 17:54:20 Fetching 'refs/heads/master' from 'https://github.com/openmrs/openmrs-contrib-ansible-docker-compose.git'.
19-Dec-2022 17:54:20 From https://github.com/openmrs/openmrs-contrib-ansible-docker-compose
19-Dec-2022 17:54:20    2d43b14..b96f5fd  master     -> master
19-Dec-2022 17:54:20 Checking out revision b96f5fde9fc2bc217b48adaeed49e2278b35edcf.
19-Dec-2022 17:54:20 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL/.git'.
19-Dec-2022 17:54:20 Cloning into '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL'...
19-Dec-2022 17:54:20 done.
19-Dec-2022 17:54:20 Already on 'master'
19-Dec-2022 17:54:20 Your branch is up to date with 'origin/master'.
19-Dec-2022 17:54:21 Updated source code to revision: b96f5fde9fc2bc217b48adaeed49e2278b35edcf
19-Dec-2022 17:54:21 Finished task 'Source Code Checkout' with result: Success
19-Dec-2022 17:54:21 Running pre-build action: Build Log Labeller Pre Build Action
19-Dec-2022 17:54:21 Running pre-build action: VCS Version Collector
19-Dec-2022 17:54:21 Running pre-build action: Run Predator
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Running these commands: docker ps -q| xargs docker kill; docker ps -qa | xargs docker rm -f; docker system prune -af --filter until=48h; docker volume prune -f;
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Running command '[docker, ps, -q|, xargs, docker, kill]'
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Command '[docker, ps, -q|, xargs, docker, kill]' completed with exit code 125
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Running command '[docker, ps, -qa, |, xargs, docker, rm, -f]'
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Command '[docker, ps, -qa, |, xargs, docker, rm, -f]' completed with exit code 125
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Running command '[docker, system, prune, -af, --filter, until=48h]'
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Command '[docker, system, prune, -af, --filter, until=48h]' completed with exit code 0
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Running command '[docker, volume, prune, -f]'
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Command '[docker, volume, prune, -f]' completed with exit code 0
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  2048 java        1474 bamboo-age 2979Mb  632Mb 00:28:06 /usr/lib/jvm/java-8-ope
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1474 wrapper        1 bamboo-age   16Mb    3Mb 00:06:43 /home/bamboo-agent/bamb
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        164Mb   11Mb 00:01:04 /sbin/init             
19-Dec-2022 17:54:21 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Initial free space: 4.2204247 GB
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-JOB1
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Deleting 0 snapshot folders from /home/bamboo-agent/.m2/repository
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
19-Dec-2022 17:54:21 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Maven stable disk freed: 0.0 GB, deleted 0 files
19-Dec-2022 17:54:21 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
19-Dec-2022 17:54:21 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist.
19-Dec-2022 17:54:21 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Final free space: 4.2204247 GB
19-Dec-2022 17:54:21 [PredatorPreBuildAction] Done
19-Dec-2022 17:54:21 Starting task 'Build distro' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
19-Dec-2022 17:54:21
Beginning to execute external process for build 'OpenMRS environments - Deploy mdsbuilder - Build docker image #23 (OENV-DM-BUIL-23)'
... running command line:
/usr/share/apache-maven-3.8.6/bin/mvn --batch-mode -Djava.io.tmpdir=/home/bamboo-agent/bamboo-agent/.agent_tmp/OENV-DM-BUIL org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.1.1:build-distro -Ddir=docker -U
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL/files/mdsbuilder
19-Dec-2022 17:54:23 [INFO] Scanning for projects...
19-Dec-2022 17:54:23 [INFO]
19-Dec-2022 17:54:23 [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
19-Dec-2022 17:54:23 [INFO] Building Maven Stub Project (No POM) 1
19-Dec-2022 17:54:23 [INFO] --------------------------------[ pom ]---------------------------------
19-Dec-2022 17:54:23 [INFO]
19-Dec-2022 17:54:23 [INFO] --- openmrs-sdk-maven-plugin:4.1.1:build-distro (default-cli) @ standalone-pom ---
19-Dec-2022 17:54:24
19-Dec-2022 17:54:24 Building distribution from the distro file at /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OENV-DM-BUIL/files/mdsbuilder/openmrs-distro.properties...
19-Dec-2022 17:54:24
19-Dec-2022 17:54:24
19-Dec-2022 17:54:24 Downloading modules...
19-Dec-2022 17:54:24
19-Dec-2022 17:54:25 [INFO] Configured Artifact: org.openmrs.distro:platform:2.5.8:jar
19-Dec-2022 17:54:26 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/distro/platform/2.5.8/platform-2.5.8.jar
19-Dec-2022 17:54:27 [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/distro/platform/2.5.8/platform-2.5.8.jar
19-Dec-2022 17:54:27 [INFO] ------------------------------------------------------------------------
19-Dec-2022 17:54:27 [INFO] BUILD FAILURE
19-Dec-2022 17:54:27 [INFO] ------------------------------------------------------------------------
19-Dec-2022 17:54:27 [INFO] Total time:  4.286 s
19-Dec-2022 17:54:27 [INFO] Finished at: 2022-12-19T17:54:27Z
19-Dec-2022 17:54:27 [INFO] ------------------------------------------------------------------------
19-Dec-2022 17:54:27 [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.1.1:build-distro (default-cli) on project standalone-pom: Unable to execute mojo: Unable to find artifact. Could not find artifact org.openmrs.distro:platform:jar:2.5.8 in openmrs-repo (https://mavenrepo.openmrs.org/nexus/content/repositories/public)
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] Try downloading the file manually from the project website.
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] Then, install it using the command:
19-Dec-2022 17:54:27 [ERROR]     mvn install:install-file -DgroupId=org.openmrs.distro -DartifactId=platform -Dversion=2.5.8 -Dpackaging=jar -Dfile=/path/to/file
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] Alternatively, if you host your own repository you can deploy the file there:
19-Dec-2022 17:54:27 [ERROR]     mvn deploy:deploy-file -DgroupId=org.openmrs.distro -DartifactId=platform -Dversion=2.5.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR]   org.openmrs.distro:platform:jar:2.5.8
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] from the specified remote repositories:
19-Dec-2022 17:54:27 [ERROR]   openmrs-repo (https://mavenrepo.openmrs.org/nexus/content/repositories/public, releases=true, snapshots=true),
19-Dec-2022 17:54:27 [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
19-Dec-2022 17:54:27 [ERROR] -> [Help 1]
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
19-Dec-2022 17:54:27 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
19-Dec-2022 17:54:27 [ERROR]
19-Dec-2022 17:54:27 [ERROR] For more information about the errors and possible solutions, please read the following articles:
19-Dec-2022 17:54:27 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
19-Dec-2022 17:54:27 Failing task since return code of [/usr/share/apache-maven-3.8.6/bin/mvn --batch-mode -Djava.io.tmpdir=/home/bamboo-agent/bamboo-agent/.agent_tmp/OENV-DM-BUIL org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.1.1:build-distro -Ddir=docker -U] was 1 while expected 0
19-Dec-2022 17:54:27 Finished task 'Build distro' with result: Failed
19-Dec-2022 17:54:27 Running post build plugin 'Docker Container Cleanup'
19-Dec-2022 17:54:27 Running post build plugin 'NCover Results Collector'
19-Dec-2022 17:54:27 Running post build plugin 'Build Results Label Collector'
19-Dec-2022 17:54:27 Running post build plugin 'Clover Results Collector'
19-Dec-2022 17:54:27 Running post build plugin 'npm Cache Cleanup'
19-Dec-2022 17:54:27 Running post build plugin 'Artifact Copier'
19-Dec-2022 17:54:27 Finalising the build...
19-Dec-2022 17:54:27 Stopping timer.
19-Dec-2022 17:54:27 Build OENV-DM-BUIL-23 completed.
19-Dec-2022 17:54:27 Running on server: post build plugin 'Build Hanging Detection Configuration'
19-Dec-2022 17:54:27 Running on server: post build plugin 'NCover Results Collector'
19-Dec-2022 17:54:27 Running on server: post build plugin 'Build Labeller'
19-Dec-2022 17:54:27 Running on server: post build plugin 'Clover Delta Calculator'
19-Dec-2022 17:54:27 Running on server: post build plugin 'Maven Dependencies Postprocessor'
19-Dec-2022 17:54:27 All post build plugins have finished
19-Dec-2022 17:54:27 Generating build results summary...
19-Dec-2022 17:54:27 Saving build results to disk...
19-Dec-2022 17:54:27 Store variable context...
19-Dec-2022 17:54:27 Finished building OENV-DM-BUIL-23.