Build: #101 failed

Job: Deploy failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Build log

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

02-Mar-2023 16:36:23 Build OpenMRS Core - Openmrs Core 2.3.x - Deploy #101 (TRUNK-OC3-DEP-101) started building on agent yu.openmrs.org (2), bamboo version: 8.2.4
02-Mar-2023 16:36:23 Remote agent on host yu.openmrs.org
02-Mar-2023 16:36:23 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP
02-Mar-2023 16:36:23 Executing build OpenMRS Core - Openmrs Core 2.3.x - Deploy #101 (TRUNK-OC3-DEP-101)
02-Mar-2023 16:36:23 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
02-Mar-2023 16:36:23 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP
02-Mar-2023 16:36:23 Updating source code to revision: 6d88f818c7f7f98ed5ce1f638319e56b932a7cd5
02-Mar-2023 16:36:23 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/.git'.
02-Mar-2023 16:36:23 hint: Using 'master' as the name for the initial branch. This default branch name
02-Mar-2023 16:36:23 hint: is subject to change. To configure the initial branch name to use in all
02-Mar-2023 16:36:23 hint: of your new repositories, which will suppress this warning, call:
02-Mar-2023 16:36:23 hint:
02-Mar-2023 16:36:23 hint:         git config --global init.defaultBranch <name>
02-Mar-2023 16:36:23 hint:
02-Mar-2023 16:36:23 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
02-Mar-2023 16:36:23 hint: 'development'. The just-created branch can be renamed via this command:
02-Mar-2023 16:36:23 hint:
02-Mar-2023 16:36:23 hint:         git branch -m <name>
02-Mar-2023 16:36:23 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/.git/
02-Mar-2023 16:36:23 Fetching 'refs/heads/2.3.x' from 'https://github.com/openmrs/openmrs-core.git'. Will try to do a shallow fetch.
02-Mar-2023 16:36:25 From https://github.com/openmrs/openmrs-core
02-Mar-2023 16:36:25 * [new branch]      2.3.x      -> 2.3.x
02-Mar-2023 16:36:25 Checking out revision 6d88f818c7f7f98ed5ce1f638319e56b932a7cd5.
02-Mar-2023 16:36:25 Switched to branch '2.3.x'
02-Mar-2023 16:36:25 Updated source code to revision: 6d88f818c7f7f98ed5ce1f638319e56b932a7cd5
02-Mar-2023 16:36:25 Finished task 'Checkout Default Repository' with result: Success
02-Mar-2023 16:36:25 Running pre-build action: Build Log Labeller Pre Build Action
02-Mar-2023 16:36:25 Running pre-build action: VCS Version Collector
02-Mar-2023 16:36:25 Running pre-build action: Run Predator
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  2036 java        1487 bamboo-age 2978Mb  620Mb 00:31:49 /usr/lib/jvm/java-8-ope
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1487 wrapper        1 bamboo-age   16Mb    2Mb 00:08:12 /home/bamboo-agent/bamb
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        164Mb   11Mb 00:01:23 /sbin/init             
02-Mar-2023 16:36:25 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Initial free space: 3.8581657 GB
02-Mar-2023 16:36:25 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-IT
02-Mar-2023 16:36:26 [PredatorPreBuildAction] Deleting 10 snapshot folders from /home/bamboo-agent/.m2/repository
02-Mar-2023 16:36:26 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
02-Mar-2023 16:36:26 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
02-Mar-2023 16:36:26 [PredatorPreBuildAction] Maven stable disk freed: 0.5291418 GB, deleted 148 files
02-Mar-2023 16:36:26 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
02-Mar-2023 16:36:26 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist.
02-Mar-2023 16:36:26 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
02-Mar-2023 16:36:26 [PredatorPreBuildAction] Final free space: 3.919651 GB
02-Mar-2023 16:36:26 [PredatorPreBuildAction] Done
02-Mar-2023 16:36:26
Substituting variable: ${bamboo.mavenDeployGoals} with clean deploy -DskipTests
02-Mar-2023 16:36:26 Starting task 'Maven 3.x' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn3'
02-Mar-2023 16:36:26
Beginning to execute external process for build 'OpenMRS Core - Openmrs Core 2.3.x - Deploy #101 (TRUNK-OC3-DEP-101)'
... running command line:
/usr/share/apache-maven-3.8.6/bin/mvn --batch-mode -Djava.io.tmpdir=/home/bamboo-agent/bamboo-agent/.agent_tmp/TRUNK-OC3-DEP clean deploy -DskipTests
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP
02-Mar-2023 16:36:28 [INFO] Scanning for projects...
02-Mar-2023 16:36:28 [INFO] ------------------------------------------------------------------------
02-Mar-2023 16:36:28 [INFO] Reactor Build Order:
02-Mar-2023 16:36:28 [INFO]
02-Mar-2023 16:36:28 [INFO] OpenMRS                                                            [pom]
02-Mar-2023 16:36:28 [INFO] openmrs-tools                                                      [jar]
02-Mar-2023 16:36:28 [INFO] openmrs-test                                                       [pom]
02-Mar-2023 16:36:28 [INFO] openmrs-api                                                        [jar]
02-Mar-2023 16:36:28 [INFO] openmrs-web                                                        [jar]
02-Mar-2023 16:36:28 [INFO] openmrs-webapp                                                     [war]
02-Mar-2023 16:36:28 [INFO]
02-Mar-2023 16:36:28 [INFO] ------------------------< org.openmrs:openmrs >-------------------------
02-Mar-2023 16:36:28 [INFO] Building OpenMRS 2.3.6-SNAPSHOT                                    [1/6]
02-Mar-2023 16:36:28 [INFO] --------------------------------[ pom ]---------------------------------
02-Mar-2023 16:36:28 [INFO]
02-Mar-2023 16:36:28 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openmrs ---
02-Mar-2023 16:36:28 [INFO]
02-Mar-2023 16:36:28 [INFO] --- buildnumber-maven-plugin:1.1:create (default) @ openmrs ---
02-Mar-2023 16:36:29 [INFO] Checking for local modifications: skipped.
02-Mar-2023 16:36:29 [INFO] Updating project files from SCM: skipped.
02-Mar-2023 16:36:29 [INFO] ShortRevision tag detected. The value is '6'.
02-Mar-2023 16:36:29 [INFO] Executing: /bin/sh -c cd /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP && git rev-parse --verify --short=6 HEAD
02-Mar-2023 16:36:29 [INFO] Working directory: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP
02-Mar-2023 16:36:29 [INFO] Storing buildNumber: 6d88f8 at timestamp: 1677774989174
02-Mar-2023 16:36:29 [INFO] ShortRevision tag detected. The value is '6'.
02-Mar-2023 16:36:29 [INFO] Executing: /bin/sh -c cd /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP && git rev-parse --verify --short=6 HEAD
02-Mar-2023 16:36:29 [INFO] Working directory: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP
02-Mar-2023 16:36:29 [INFO] Storing buildScmBranch: UNKNOWN
02-Mar-2023 16:36:29 [INFO]
02-Mar-2023 16:36:29 [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs ---
02-Mar-2023 16:36:29 [INFO]
02-Mar-2023 16:36:29 [INFO] --- maven-jar-plugin:2.3.2:test-jar (default) @ openmrs ---
02-Mar-2023 16:36:29 [WARNING] JAR will be empty - no content was marked for inclusion!
02-Mar-2023 16:36:29 [INFO] Building jar: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/target/openmrs-2.3.6-SNAPSHOT-tests.jar
02-Mar-2023 16:36:29 [INFO]
02-Mar-2023 16:36:29 [INFO] --- license-maven-plugin:3.0:check (default) @ openmrs ---
02-Mar-2023 16:36:29 [INFO] Checking licenses...
02-Mar-2023 16:36:30 [INFO]
02-Mar-2023 16:36:30 [INFO] --- maven-install-plugin:2.4:install (default-install) @ openmrs ---
02-Mar-2023 16:36:30 [INFO] Installing /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/pom.xml to /home/bamboo-agent/.m2/repository/org/openmrs/openmrs/2.3.6-SNAPSHOT/openmrs-2.3.6-SNAPSHOT.pom
02-Mar-2023 16:36:30 [INFO] ------------------------------------------------------------------------
02-Mar-2023 16:36:30 [INFO] Reactor Summary for OpenMRS 2.3.6-SNAPSHOT:
02-Mar-2023 16:36:30 [INFO]
02-Mar-2023 16:36:30 [INFO] OpenMRS ............................................ FAILURE [  1.978 s]
02-Mar-2023 16:36:30 [INFO] openmrs-tools ...................................... SKIPPED
02-Mar-2023 16:36:30 [INFO] openmrs-test ....................................... SKIPPED
02-Mar-2023 16:36:30 [INFO] openmrs-api ........................................ SKIPPED
02-Mar-2023 16:36:30 [INFO] openmrs-web ........................................ SKIPPED
02-Mar-2023 16:36:30 [INFO] openmrs-webapp ..................................... SKIPPED
02-Mar-2023 16:36:30 [INFO] ------------------------------------------------------------------------
02-Mar-2023 16:36:30 [INFO] BUILD FAILURE
02-Mar-2023 16:36:30 [INFO] ------------------------------------------------------------------------
02-Mar-2023 16:36:30 [INFO] Total time:  2.219 s
02-Mar-2023 16:36:30 [INFO] Finished at: 2023-03-02T16:36:30Z
02-Mar-2023 16:36:30 [INFO] ------------------------------------------------------------------------
02-Mar-2023 16:36:30 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project openmrs: Failed to install metadata org.openmrs:openmrs/maven-metadata.xml: Could not write metadata /home/bamboo-agent/.m2/repository/org/openmrs/openmrs/maven-metadata-local.xml: /home/bamboo-agent/.m2/repository/org/openmrs/openmrs/maven-metadata-local.xml (Permission denied) -> [Help 1]
02-Mar-2023 16:36:30 [ERROR]
02-Mar-2023 16:36:30 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
02-Mar-2023 16:36:30 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
02-Mar-2023 16:36:30 [ERROR]
02-Mar-2023 16:36:30 [ERROR] For more information about the errors and possible solutions, please read the following articles:
02-Mar-2023 16:36:30 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
02-Mar-2023 16:36:30 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/TRUNK-OC3-DEP clean deploy -DskipTests] was 1 while expected 0
02-Mar-2023 16:36:30 Finished task 'Maven 3.x' with result: Failed
02-Mar-2023 16:36:30 Running post build plugin 'Docker Container Cleanup'
02-Mar-2023 16:36:30 Running post build plugin 'NCover Results Collector'
02-Mar-2023 16:36:30 Running post build plugin 'Build Results Label Collector'
02-Mar-2023 16:36:30 Running post build plugin 'Clover Results Collector'
02-Mar-2023 16:36:30 Running post build plugin 'npm Cache Cleanup'
02-Mar-2023 16:36:30 Running post build plugin 'Artifact Copier'
02-Mar-2023 16:36:30 Publishing an artifact: openmrs 1.11 war
02-Mar-2023 16:36:30 Unable to publish artifact [openmrs 1.11 war]: the source directory /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/webapp/target does not exist.
02-Mar-2023 16:36:30 The artifact hasn't been successfully published after 306.5 μs
02-Mar-2023 16:36:30 Publishing an artifact: openmrs 1.11 api jar
02-Mar-2023 16:36:30 Unable to publish artifact [openmrs 1.11 api jar]: the source directory /home/bamboo-agent/bamboo-agent/xml-data/build-dir/TRUNK-OC3-DEP/webapp/target/openmrs/WEB-INF/lib does not exist.
02-Mar-2023 16:36:30 The artifact hasn't been successfully published after 115.8 μs
02-Mar-2023 16:36:30 Finalising the build...
02-Mar-2023 16:36:30 Stopping timer.
02-Mar-2023 16:36:30 Build TRUNK-OC3-DEP-101 completed.
02-Mar-2023 16:36:30 Running on server: post build plugin 'Build Hanging Detection Configuration'
02-Mar-2023 16:36:30 Running on server: post build plugin 'NCover Results Collector'
02-Mar-2023 16:36:30 Running on server: post build plugin 'Build Labeller'
02-Mar-2023 16:36:30 Running on server: post build plugin 'Clover Delta Calculator'
02-Mar-2023 16:36:30 Running on server: post build plugin 'Maven Dependencies Postprocessor'
02-Mar-2023 16:36:30 All post build plugins have finished
02-Mar-2023 16:36:30 Generating build results summary...
02-Mar-2023 16:36:30 Saving build results to disk...
02-Mar-2023 16:36:30 Store variable context...
02-Mar-2023 16:36:30 Finished building TRUNK-OC3-DEP-101.