simple 06-Sep-2023 09:43:27 Build Open Concept Lab - OCL FHIR - Build oclfhir #164 (OCL-OF-JOB1-164) started building on agent yu.openmrs.org (3), bamboo version: 8.2.4 simple 06-Sep-2023 09:43:27 Remote agent on host yu.openmrs.org simple 06-Sep-2023 09:43:27 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OF-JOB1 simple 06-Sep-2023 09:43:27 Executing build Open Concept Lab - OCL FHIR - Build oclfhir #164 (OCL-OF-JOB1-164) simple 06-Sep-2023 09:43:27 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 06-Sep-2023 09:43:27 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OF-JOB1 simple 06-Sep-2023 09:43:27 Updating source code to revision: 7aaf924ff1986ebbccab60a05c1d95d4a527f7f2 simple 06-Sep-2023 09:43:27 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/_git-repositories-cache/4fc2fb2088af28a9d3e8f92cd5ed4328242a99bc/.git'. simple 06-Sep-2023 09:43:27 hint: Using 'master' as the name for the initial branch. This default branch name simple 06-Sep-2023 09:43:27 hint: is subject to change. To configure the initial branch name to use in all simple 06-Sep-2023 09:43:27 hint: of your new repositories, which will suppress this warning, call: simple 06-Sep-2023 09:43:27 hint: simple 06-Sep-2023 09:43:27 hint: git config --global init.defaultBranch simple 06-Sep-2023 09:43:27 hint: simple 06-Sep-2023 09:43:27 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and simple 06-Sep-2023 09:43:27 hint: 'development'. The just-created branch can be renamed via this command: simple 06-Sep-2023 09:43:27 hint: simple 06-Sep-2023 09:43:27 hint: git branch -m simple 06-Sep-2023 09:43:27 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/_git-repositories-cache/4fc2fb2088af28a9d3e8f92cd5ed4328242a99bc/.git/ simple 06-Sep-2023 09:43:28 Fetching 'refs/heads/master' from 'https://github.com/OpenConceptLab/oclfhir.git'. simple 06-Sep-2023 09:43:28 From https://github.com/OpenConceptLab/oclfhir simple 06-Sep-2023 09:43:28 * [new branch] master -> master simple 06-Sep-2023 09:43:28 Checking out revision 7aaf924ff1986ebbccab60a05c1d95d4a527f7f2. simple 06-Sep-2023 09:43:28 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OF-JOB1/.git'. simple 06-Sep-2023 09:43:28 Cloning into '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OF-JOB1'... simple 06-Sep-2023 09:43:28 done. simple 06-Sep-2023 09:43:28 Already on 'master' simple 06-Sep-2023 09:43:28 Your branch is up to date with 'origin/master'. simple 06-Sep-2023 09:43:28 Updated source code to revision: 7aaf924ff1986ebbccab60a05c1d95d4a527f7f2 simple 06-Sep-2023 09:43:28 Finished task 'Checkout Default Repository' with result: Success simple 06-Sep-2023 09:43:28 Running pre-build action: Build Log Labeller Pre Build Action simple 06-Sep-2023 09:43:28 Running pre-build action: VCS Version Collector simple 06-Sep-2023 09:43:28 Running pre-build action: Run Predator simple 06-Sep-2023 09:43:28 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner simple 06-Sep-2023 09:43:28 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh simple 06-Sep-2023 09:43:28 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]' simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0 simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 11642 java 1477 bamboo-age 2948Mb 411Mb 00:00:32 /usr/lib/jvm/java-8-ope simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1477 wrapper 1 bamboo-age 16Mb 3Mb 00:01:27 /home/bamboo-agent/bamb simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1 systemd 0 root 164Mb 11Mb 00:00:09 /sbin/init simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm) simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Initial free space: 5.300579 GB simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/CSM-CSM-JOB1 simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Deleting 17 snapshot folders from /home/bamboo-agent/.m2/repository simple 06-Sep-2023 09:43:31 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] Maven stable disk freed: 0.57537323 GB, deleted 52 files simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist. simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist. simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist. simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] Final free space: 5.356476 GB simple 06-Sep-2023 09:43:32 [PredatorPreBuildAction] Done command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.planRepository.revision} with 7aaf924ff1986ebbccab60a05c1d95d4a527f7f2 command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.name} with openconceptlab/oclfhir command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.tag} with nightly command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.dockerhub.username} with openmrsci command 06-Sep-2023 09:43:32 Substituting password variable: ${bamboo.dockerhub.password} command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.name} with openconceptlab/oclfhir command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.tag} with nightly command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.name} with openconceptlab/oclfhir command 06-Sep-2023 09:43:32 Substituting variable: ${bamboo.docker.image.tag} with nightly simple 06-Sep-2023 09:43:32 Starting task 'Build and push to DockerHub' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 06-Sep-2023 09:43:32 Beginning to execute external process for build 'Open Concept Lab - OCL FHIR - Build oclfhir #164 (OCL-OF-JOB1-164)'\n ... running command line: \n/home/bamboo-agent/bamboo-agent/temp/OCL-OF-JOB1-164-ScriptBuildTask-8708494928862135998.sh\n ... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OF-JOB1\n error 06-Sep-2023 09:43:32 + [[ ehuB != ehuxB ]] error 06-Sep-2023 09:43:32 + echo 'Start of Lmod init/bash script to define the module command' error 06-Sep-2023 09:43:32 + LMOD_PKG=/usr/share/lmod/lmod build 06-Sep-2023 09:43:32 Start of Lmod init/bash script to define the module command error 06-Sep-2023 09:43:32 + LMOD_DIR=/usr/share/lmod/lmod/libexec error 06-Sep-2023 09:43:32 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod error 06-Sep-2023 09:43:32 + MODULESHOME=/usr/share/lmod/lmod error 06-Sep-2023 09:43:32 + export LMOD_PKG error 06-Sep-2023 09:43:32 + export LMOD_CMD error 06-Sep-2023 09:43:32 + export LMOD_DIR error 06-Sep-2023 09:43:32 + export MODULESHOME error 06-Sep-2023 09:43:32 + LMOD_VERSION=6.6 error 06-Sep-2023 09:43:32 + export LMOD_VERSION error 06-Sep-2023 09:43:32 + '[' : '!=' : ']' error 06-Sep-2023 09:43:32 + unalias ml error 06-Sep-2023 09:43:32 + true error 06-Sep-2023 09:43:32 ++ /usr/bin/tr '[:upper:]' '[:lower:]' error 06-Sep-2023 09:43:32 ++ echo YES error 06-Sep-2023 09:43:32 + export_module=yes error 06-Sep-2023 09:43:32 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']' error 06-Sep-2023 09:43:32 + export -f module error 06-Sep-2023 09:43:32 + export -f ml error 06-Sep-2023 09:43:32 + unset export_module error 06-Sep-2023 09:43:32 + '[' -n '' ']' build 06-Sep-2023 09:43:32 End of Lmod init/bash script to define the module command error 06-Sep-2023 09:43:32 + '[' 5 -ge 3 ']' error 06-Sep-2023 09:43:32 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']' error 06-Sep-2023 09:43:32 + '[' -n '' ']' error 06-Sep-2023 09:43:32 + [[ ehuB != ehuxB ]] error 06-Sep-2023 09:43:32 + echo 'End of Lmod init/bash script to define the module command' error 06-Sep-2023 09:43:32 + set +x build 06-Sep-2023 09:43:32 Sending build context to Docker daemon 5.509MB build 06-Sep-2023 09:43:32 build 06-Sep-2023 09:43:32 Step 1/23 : FROM openjdk:14 as build build 06-Sep-2023 09:43:33 14: Pulling from library/openjdk build 06-Sep-2023 09:43:33 fd3d5e431db6: Pulling fs layer build 06-Sep-2023 09:43:33 1004722dc5e0: Pulling fs layer build 06-Sep-2023 09:43:33 274e305bc330: Pulling fs layer build 06-Sep-2023 09:43:33 1004722dc5e0: Verifying Checksum build 06-Sep-2023 09:43:33 1004722dc5e0: Download complete build 06-Sep-2023 09:43:34 fd3d5e431db6: Verifying Checksum build 06-Sep-2023 09:43:34 fd3d5e431db6: Download complete build 06-Sep-2023 09:43:35 274e305bc330: Verifying Checksum build 06-Sep-2023 09:43:35 274e305bc330: Download complete build 06-Sep-2023 09:43:36 fd3d5e431db6: Pull complete build 06-Sep-2023 09:43:37 1004722dc5e0: Pull complete build 06-Sep-2023 09:43:41 274e305bc330: Pull complete build 06-Sep-2023 09:43:41 Digest: sha256:285998e4fbab7907f11212c3ee2e70827b92481a5afb333bd31585dc0962df31 build 06-Sep-2023 09:43:41 Status: Downloaded newer image for openjdk:14 build 06-Sep-2023 09:43:41 ---> 77606ea825b1 build 06-Sep-2023 09:43:41 Step 2/23 : ARG SOURCE_COMMIT build 06-Sep-2023 09:43:41 ---> Running in d6831f87da02 build 06-Sep-2023 09:43:41 Removing intermediate container d6831f87da02 build 06-Sep-2023 09:43:41 ---> 481bbe7467aa build 06-Sep-2023 09:43:41 Step 3/23 : ARG MAVEN_VERSION=3.6.3 build 06-Sep-2023 09:43:41 ---> Running in 843db98ee646 build 06-Sep-2023 09:43:41 Removing intermediate container 843db98ee646 build 06-Sep-2023 09:43:41 ---> f40237fcee07 build 06-Sep-2023 09:43:41 Step 4/23 : ARG USER_HOME_DIR="/code" build 06-Sep-2023 09:43:41 ---> Running in 0ddcaf1b11e9 build 06-Sep-2023 09:43:42 Removing intermediate container 0ddcaf1b11e9 build 06-Sep-2023 09:43:42 ---> 53a7d38c78ac build 06-Sep-2023 09:43:42 Step 5/23 : ARG SHA=c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0 build 06-Sep-2023 09:43:42 ---> Running in 3cb352f426e1 build 06-Sep-2023 09:43:42 Removing intermediate container 3cb352f426e1 build 06-Sep-2023 09:43:42 ---> bb7750465e0b build 06-Sep-2023 09:43:42 Step 6/23 : ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries build 06-Sep-2023 09:43:42 ---> Running in ad34df3baa3e build 06-Sep-2023 09:43:42 Removing intermediate container ad34df3baa3e build 06-Sep-2023 09:43:42 ---> b5e24b59a8eb build 06-Sep-2023 09:43:42 Step 7/23 : RUN mkdir -p /usr/share/maven /usr/share/maven/ref && echo "Downloading maven" && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz && echo "Checking download file hash" && echo "${SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - && echo "Unziping maven" && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 && echo "Cleaning and setting links" && rm -f /tmp/apache-maven.tar.gz && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn build 06-Sep-2023 09:43:42 ---> Running in d601b307e9c8 build 06-Sep-2023 09:43:42 Downloading maven build 06-Sep-2023 09:43:43 curl: (22) The requested URL returned error: 404 Not Found error 06-Sep-2023 09:43:43 The command '/bin/sh -c mkdir -p /usr/share/maven /usr/share/maven/ref && echo "Downloading maven" && curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz && echo "Checking download file hash" && echo "${SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - && echo "Unziping maven" && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 && echo "Cleaning and setting links" && rm -f /tmp/apache-maven.tar.gz && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn' returned a non-zero code: 22 build 06-Sep-2023 09:43:43  simple 06-Sep-2023 09:43:43 Failing task since return code of [/home/bamboo-agent/bamboo-agent/temp/OCL-OF-JOB1-164-ScriptBuildTask-8708494928862135998.sh] was 22 while expected 0 simple 06-Sep-2023 09:43:43 Finished task 'Build and push to DockerHub' with result: Failed simple 06-Sep-2023 09:43:43 Running post build plugin 'Docker Container Cleanup' simple 06-Sep-2023 09:43:43 Running post build plugin 'NCover Results Collector' simple 06-Sep-2023 09:43:43 Running post build plugin 'Build Results Label Collector' simple 06-Sep-2023 09:43:43 Running post build plugin 'Clover Results Collector' simple 06-Sep-2023 09:43:43 Running post build plugin 'npm Cache Cleanup' simple 06-Sep-2023 09:43:43 Running post build plugin 'Artifact Copier' simple 06-Sep-2023 09:43:43 Finalising the build... simple 06-Sep-2023 09:43:43 Stopping timer. simple 06-Sep-2023 09:43:43 Build OCL-OF-JOB1-164 completed. simple 06-Sep-2023 09:43:43 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 06-Sep-2023 09:43:43 Running on server: post build plugin 'NCover Results Collector' simple 06-Sep-2023 09:43:43 Running on server: post build plugin 'Build Labeller' simple 06-Sep-2023 09:43:43 Running on server: post build plugin 'Clover Delta Calculator' simple 06-Sep-2023 09:43:43 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 06-Sep-2023 09:43:43 All post build plugins have finished simple 06-Sep-2023 09:43:43 Generating build results summary... simple 06-Sep-2023 09:43:43 Saving build results to disk... simple 06-Sep-2023 09:43:43 Store variable context... simple 06-Sep-2023 09:43:43 Finished building OCL-OF-JOB1-164.