Build: #207 failed

Job: Build failed

Stages & jobs

  1. Update versions

  2. Build

  3. Push docker image

  4. Validate

  5. Release

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

  7. Release 3rd stage

Build log

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

13-Nov-2024 15:48:49 Build OpenMRS Platform - Openmrs Platform 2.3.x - Build #207 (OP-OP3-JOB1-207) started building on agent xiao.openmrs.org (3), bamboo version: 8.2.4
13-Nov-2024 15:48:49 Remote agent on host xiao.openmrs.org
13-Nov-2024 15:48:49 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1
13-Nov-2024 15:48:49 Executing build OpenMRS Platform - Openmrs Platform 2.3.x - Build #207 (OP-OP3-JOB1-207)
13-Nov-2024 15:48:49 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
13-Nov-2024 15:48:49 Build always requires a clean checkout
13-Nov-2024 15:48:49 Cleaning build directory '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1'
13-Nov-2024 15:48:49 Build always requires a clean checkout
13-Nov-2024 15:48:49 Cleaning build directory '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/release-scripts'
13-Nov-2024 15:48:49 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1
13-Nov-2024 15:48:49 Updating source code to revision: 7899652376b9224a3228e79f966e949a702549ba
13-Nov-2024 15:48:49 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/.git'.
13-Nov-2024 15:48:49 hint: Using 'master' as the name for the initial branch. This default branch name
13-Nov-2024 15:48:49 hint: is subject to change. To configure the initial branch name to use in all
13-Nov-2024 15:48:49 hint: of your new repositories, which will suppress this warning, call:
13-Nov-2024 15:48:49 hint:
13-Nov-2024 15:48:49 hint:         git config --global init.defaultBranch <name>
13-Nov-2024 15:48:49 hint:
13-Nov-2024 15:48:49 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
13-Nov-2024 15:48:49 hint: 'development'. The just-created branch can be renamed via this command:
13-Nov-2024 15:48:49 hint:
13-Nov-2024 15:48:49 hint:         git branch -m <name>
13-Nov-2024 15:48:49 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/.git/
13-Nov-2024 15:48:50 Fetching 'refs/heads/2.3.x' from 'https://github.com/openmrs/openmrs-distro-platform'. Will try to do a shallow fetch.
13-Nov-2024 15:48:50 From https://github.com/openmrs/openmrs-distro-platform
13-Nov-2024 15:48:50 * [new branch]      2.3.x      -> 2.3.x
13-Nov-2024 15:48:50 Checking out revision 7899652376b9224a3228e79f966e949a702549ba.
13-Nov-2024 15:48:50 Switched to branch '2.3.x'
13-Nov-2024 15:48:50 Updated source code to revision: 7899652376b9224a3228e79f966e949a702549ba
13-Nov-2024 15:48:50 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/release-scripts
13-Nov-2024 15:48:50 Updating source code to revision: ced9ff00825ca1cb8c744547be4ba8ff994bd71b
13-Nov-2024 15:48:50 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/release-scripts/.git'.
13-Nov-2024 15:48:50 hint: Using 'master' as the name for the initial branch. This default branch name
13-Nov-2024 15:48:50 hint: is subject to change. To configure the initial branch name to use in all
13-Nov-2024 15:48:50 hint: of your new repositories, which will suppress this warning, call:
13-Nov-2024 15:48:50 hint:
13-Nov-2024 15:48:50 hint:         git config --global init.defaultBranch <name>
13-Nov-2024 15:48:50 hint:
13-Nov-2024 15:48:50 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
13-Nov-2024 15:48:50 hint: 'development'. The just-created branch can be renamed via this command:
13-Nov-2024 15:48:50 hint:
13-Nov-2024 15:48:50 hint:         git branch -m <name>
13-Nov-2024 15:48:50 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/release-scripts/.git/
13-Nov-2024 15:48:50 Fetching 'refs/heads/master' from 'https://github.com/openmrs/openmrs-contrib-bamboo.git'.
13-Nov-2024 15:48:50 From https://github.com/openmrs/openmrs-contrib-bamboo
13-Nov-2024 15:48:50 * [new branch]      master     -> master
13-Nov-2024 15:48:50 Checking out revision ced9ff00825ca1cb8c744547be4ba8ff994bd71b.
13-Nov-2024 15:48:50 Already on 'master'
13-Nov-2024 15:48:50 Updated source code to revision: ced9ff00825ca1cb8c744547be4ba8ff994bd71b
13-Nov-2024 15:48:50 Finished task 'Checkout Default Repository' with result: Success
13-Nov-2024 15:48:50 Running pre-build action: Build Log Labeller Pre Build Action
13-Nov-2024 15:48:50 Running pre-build action: VCS Version Collector
13-Nov-2024 15:48:50 Running pre-build action: Run Predator
13-Nov-2024 15:48:50 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
13-Nov-2024 15:48:50 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
13-Nov-2024 15:48:50 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 23955 java        1258 bamboo-age 2994Mb  598Mb 00:33:30 /usr/lib/jvm/java-8-ope
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1258 wrapper        1 bamboo-age   16Mb    1Mb 00:14:11 /home/bamboo-agent/bamb
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        164Mb   11Mb 00:01:20 /sbin/init             
13-Nov-2024 15:48:51 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Initial free space: 5.491249 GB
13-Nov-2024 15:48:51 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BK-JOB1
13-Nov-2024 15:48:56 [PredatorPreBuildAction] Deleting 22 snapshot folders from /home/bamboo-agent/.m2/repository
13-Nov-2024 15:48:56 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
13-Nov-2024 15:48:57 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
13-Nov-2024 15:48:57 [PredatorPreBuildAction] Maven stable disk freed: 0.0 GB, deleted 0 files
13-Nov-2024 15:48:57 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
13-Nov-2024 15:48:57 [PredatorPreBuildAction] Deleting file /home/bamboo-agent/.docker/config.json
13-Nov-2024 15:48:57 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
13-Nov-2024 15:48:57 [PredatorPreBuildAction] Final free space: 5.494007 GB
13-Nov-2024 15:48:57 [PredatorPreBuildAction] Done
13-Nov-2024 15:48:57 Starting task 'Deploy' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
13-Nov-2024 15:48:57
Beginning to execute external process for build 'OpenMRS Platform - Openmrs Platform 2.3.x - Build #207 (OP-OP3-JOB1-207)'
... running command line:
/usr/share/apache-maven-3.8.6/bin/mvn -Djava.io.tmpdir=/home/bamboo-agent/bamboo-agent/.agent_tmp/OP-OP3-JOB1 deploy -U -B
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1
13-Nov-2024 15:48:59 [INFO] Scanning for projects...
13-Nov-2024 15:48:59 [INFO]
13-Nov-2024 15:48:59 [INFO] --------------------< org.openmrs.distro:platform >---------------------
13-Nov-2024 15:48:59 [INFO] Building OpenMRS Platform 2.3.7-SNAPSHOT
13-Nov-2024 15:48:59 [INFO] --------------------------------[ jar ]---------------------------------
13-Nov-2024 15:48:59 [INFO]
13-Nov-2024 15:48:59 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ platform ---
13-Nov-2024 15:49:00 [INFO] Using 'UTF-8' encoding to copy filtered resources.
13-Nov-2024 15:49:00 [INFO] Copying 2 resources
13-Nov-2024 15:49:00 [INFO]
13-Nov-2024 15:49:00 [INFO] --- openmrs-sdk-maven-plugin:4.0.0:build-distro (build-distro) @ platform ---
13-Nov-2024 15:49:02
13-Nov-2024 15:49:02 Downloading modules...
13-Nov-2024 15:49:02
13-Nov-2024 15:49:03 [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.3.7-SNAPSHOT:war
13-Nov-2024 15:49:03 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.3.7-SNAPSHOT/maven-metadata.xml
13-Nov-2024 15:49:05 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.3.7-SNAPSHOT/maven-metadata.xml (991 B at 394 B/s)
13-Nov-2024 15:49:05 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.3.7-SNAPSHOT/openmrs-webapp-2.3.7-20230412.200755-1.war
13-Nov-2024 15:49:11 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/web/openmrs-webapp/2.3.7-SNAPSHOT/openmrs-webapp-2.3.7-20230412.200755-1.war (60 MB at 11 MB/s)
13-Nov-2024 15:49:11 [INFO] Copying openmrs-webapp-2.3.7-SNAPSHOT.war to /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/openmrs-2.3.7-SNAPSHOT.war
13-Nov-2024 15:49:11 file:/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/openmrs-2.3.7-SNAPSHOT.war
13-Nov-2024 15:49:11 target:target/distro/web
13-Nov-2024 15:49:11 [INFO] Configured Artifact: org.openmrs.module:fhir-omod:1.20.0:jar
13-Nov-2024 15:49:11 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/fhir-omod/1.20.0/fhir-omod-1.20.0.jar
13-Nov-2024 15:49:13 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/fhir-omod/1.20.0/fhir-omod-1.20.0.jar (31 MB at 13 MB/s)
13-Nov-2024 15:49:13 [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.26.0:jar
13-Nov-2024 15:49:13 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/webservices.rest-omod/2.26.0/webservices.rest-omod-2.26.0.jar
13-Nov-2024 15:49:14 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/webservices.rest-omod/2.26.0/webservices.rest-omod-2.26.0.jar (6.3 MB at 6.8 MB/s)
13-Nov-2024 15:49:14 [INFO] Configured Artifact: org.openmrs.module:owa-omod:1.15.0:jar
13-Nov-2024 15:49:14 [INFO] Copying fhir-omod-1.20.0.jar to /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/WEB-INF/bundledModules/fhir-1.20.0.omod
13-Nov-2024 15:49:14 [INFO] Copying webservices.rest-omod-2.26.0.jar to /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/WEB-INF/bundledModules/webservices.rest-2.26.0.omod
13-Nov-2024 15:49:14 [INFO] Copying owa-omod-1.15.0.jar to /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/WEB-INF/bundledModules/owa-1.15.0.omod
13-Nov-2024 15:49:14
13-Nov-2024 15:49:14 Downloading OWAs...
13-Nov-2024 15:49:14
13-Nov-2024 15:49:14
13-Nov-2024 15:49:14 Downloading OWA: org.openmrs.owa:openmrs-owa-addonmanager:1.1.0
13-Nov-2024 15:49:14 [INFO] Configured Artifact: org.openmrs.owa:addonmanager:1.1.0:zip
13-Nov-2024 15:49:14 [INFO] Copying addonmanager-1.1.0.zip to /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro/web/WEB-INF/bundledOwas/addonmanager-1.1.0.zip
13-Nov-2024 15:49:15
13-Nov-2024 15:49:15 Creating Docker Compose configuration...
13-Nov-2024 15:49:15
13-Nov-2024 15:49:15
13-Nov-2024 15:49:15 The 'platform' distribution created! To start up the server run 'docker-compose up' from /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/distro
13-Nov-2024 15:49:15
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ platform ---
13-Nov-2024 15:49:15 [INFO] No sources to compile
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ platform ---
13-Nov-2024 15:49:15 [INFO] Using 'UTF-8' encoding to copy filtered resources.
13-Nov-2024 15:49:15 [INFO] skip non existing resourceDirectory /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/src/test/resources
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ platform ---
13-Nov-2024 15:49:15 [INFO] No sources to compile
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ platform ---
13-Nov-2024 15:49:15 [INFO] No tests to run.
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ platform ---
13-Nov-2024 15:49:15 [INFO] Building jar: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/platform-2.3.7-SNAPSHOT.jar
13-Nov-2024 15:49:15 [INFO]
13-Nov-2024 15:49:15 [INFO] --- build-helper-maven-plugin:3.0.0:attach-artifact (attach-artifacts) @ platform ---
13-Nov-2024 15:49:15 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom
13-Nov-2024 15:49:16 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom (1.8 kB at 5.1 kB/s)
13-Nov-2024 15:49:16 [INFO] Downloading from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom
13-Nov-2024 15:49:16 [INFO] Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom (12 kB at 36 kB/s)
13-Nov-2024 15:49:16 [INFO]
13-Nov-2024 15:49:16 [INFO] --- maven-install-plugin:2.4:install (default-install) @ platform ---
13-Nov-2024 15:49:16 [INFO] Installing /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/target/platform-2.3.7-SNAPSHOT.jar to /home/bamboo-agent/.m2/repository/org/openmrs/distro/platform/2.3.7-SNAPSHOT/platform-2.3.7-SNAPSHOT.jar
13-Nov-2024 15:49:16 [INFO] Installing /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OP-OP3-JOB1/pom.xml to /home/bamboo-agent/.m2/repository/org/openmrs/distro/platform/2.3.7-SNAPSHOT/platform-2.3.7-SNAPSHOT.pom
13-Nov-2024 15:49:16 [INFO] ------------------------------------------------------------------------
13-Nov-2024 15:49:16 [INFO] BUILD FAILURE
13-Nov-2024 15:49:16 [INFO] ------------------------------------------------------------------------
13-Nov-2024 15:49:16 [INFO] Total time:  17.304 s
13-Nov-2024 15:49:16 [INFO] Finished at: 2024-11-13T15:49:16Z
13-Nov-2024 15:49:16 [INFO] ------------------------------------------------------------------------
13-Nov-2024 15:49:16 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project platform: Failed to install metadata org.openmrs.distro:platform/maven-metadata.xml: Could not write metadata /home/bamboo-agent/.m2/repository/org/openmrs/distro/platform/maven-metadata-local.xml: /home/bamboo-agent/.m2/repository/org/openmrs/distro/platform/maven-metadata-local.xml (Permission denied) -> [Help 1]
13-Nov-2024 15:49:16 [ERROR]
13-Nov-2024 15:49:16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
13-Nov-2024 15:49:16 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
13-Nov-2024 15:49:16 [ERROR]
13-Nov-2024 15:49:16 [ERROR] For more information about the errors and possible solutions, please read the following articles:
13-Nov-2024 15:49:16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
13-Nov-2024 15:49:16 Failing task since return code of [/usr/share/apache-maven-3.8.6/bin/mvn -Djava.io.tmpdir=/home/bamboo-agent/bamboo-agent/.agent_tmp/OP-OP3-JOB1 deploy -U -B] was 1 while expected 0
13-Nov-2024 15:49:16 Finished task 'Deploy' with result: Failed
13-Nov-2024 15:49:16 Running post build plugin 'Docker Container Cleanup'
13-Nov-2024 15:49:16 Running post build plugin 'NCover Results Collector'
13-Nov-2024 15:49:16 Running post build plugin 'Build Results Label Collector'
13-Nov-2024 15:49:16 Running post build plugin 'Clover Results Collector'
13-Nov-2024 15:49:16 Running post build plugin 'npm Cache Cleanup'
13-Nov-2024 15:49:16 Running post build plugin 'Artifact Copier'
13-Nov-2024 15:49:16 Publishing an artifact: docker-compose-snapshot
13-Nov-2024 15:49:19 Finished publishing of artifact Non required shared artifact: [docker-compose-snapshot], pattern: [**/*] anchored at: [target/distro] in 2.615 s
13-Nov-2024 15:49:19 Publishing an artifact: docker-compose-mariadb-snapshot
13-Nov-2024 15:49:19 Finished publishing of artifact Non required shared artifact: [docker-compose-mariadb-snapshot], pattern: [docker-compose.mariadb.yml] anchored at: [docker] in 297.0 ms
13-Nov-2024 15:49:19 Finalising the build...
13-Nov-2024 15:49:19 Stopping timer.
13-Nov-2024 15:49:19 Build OP-OP3-JOB1-207 completed.
13-Nov-2024 15:49:19 Running on server: post build plugin 'Build Hanging Detection Configuration'
13-Nov-2024 15:49:19 Running on server: post build plugin 'NCover Results Collector'
13-Nov-2024 15:49:19 Running on server: post build plugin 'Build Labeller'
13-Nov-2024 15:49:19 Running on server: post build plugin 'Clover Delta Calculator'
13-Nov-2024 15:49:19 Running on server: post build plugin 'Maven Dependencies Postprocessor'
13-Nov-2024 15:49:19 All post build plugins have finished
13-Nov-2024 15:49:19 Generating build results summary...
13-Nov-2024 15:49:19 Saving build results to disk...
13-Nov-2024 15:49:19 Store variable context...
13-Nov-2024 15:49:20 Finished building OP-OP3-JOB1-207.