Run Code Metrics Reports for all RefApp Modules

Build: #124 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

Build log

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

12-Feb-2014 06:04:42 Build SON-SONAR-JOB1-124 started building on agent gw107.iu.xsede.org (2)
12-Feb-2014 06:04:42 Build working directory is /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1
12-Feb-2014 06:04:42 Executing build SON-SONAR-JOB1-124
12-Feb-2014 06:04:42 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
12-Feb-2014 06:04:42 Updating source code to revision: 2da8223a9222c08d7f545673e5bb3024f4b0d541
12-Feb-2014 06:04:43 Creating local git repository in '/opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/.git'.
12-Feb-2014 06:04:43 Initialized empty Git repository in /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/.git/
12-Feb-2014 06:04:44 Fetching 'refs/heads/*' from 'https://github.com/openmrs/openmrs-module-appframework.git'. Will try to do a shallow fetch.
12-Feb-2014 06:04:45 From https://github.com/openmrs/openmrs-module-appframework
12-Feb-2014 06:04:45 * [new branch]      apptemplate -> apptemplate
12-Feb-2014 06:04:45 * [new branch]      master     -> master
12-Feb-2014 06:04:45 Checking out revision 2da8223a9222c08d7f545673e5bb3024f4b0d541.
12-Feb-2014 06:04:45 Already on 'master'
12-Feb-2014 06:04:45 Updated source code to revision: 2da8223a9222c08d7f545673e5bb3024f4b0d541
12-Feb-2014 06:04:45 Finished task 'Checkout Default Repository'
12-Feb-2014 06:04:45 Running pre-build action: VCS Version Collector
12-Feb-2014 06:04:45 Running pre-build action: Build Number Stamper
12-Feb-2014 06:04:45 Running pre-build action: Clover Grails PreBuild Action
12-Feb-2014 06:04:45 Running pre-build action: Repository Isolation Enabler Action
12-Feb-2014 06:04:45 Running pre-build action: Maven Settings Prebuild Action
12-Feb-2014 06:04:45 Starting task 'Build' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn2'
12-Feb-2014 06:04:45
Beginning to execute external process for build 'Sonar - App Framework - Default Job'
... running command line:
/usr/share/maven2/bin/mvn
-Djava.io.tmpdir=/tmp/SON-SONAR-JOB1
clean
package
-DskipTests=true
... in: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1
... using extra environment variables:
bamboo_mavenBuildGoals=clean install
MAVEN2_HOME=/usr/share/maven2
JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
M2_HOME=/usr/share/maven2
PATH=/usr/lib/jvm/java-6-openjdk-amd64/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
12-Feb-2014 06:04:50 [INFO] Scanning for projects...
12-Feb-2014 06:04:50 [INFO] Reactor build order:
12-Feb-2014 06:04:50 [INFO]   App Framework Module
12-Feb-2014 06:04:50 [INFO]   App Framework Module Apps for testing
12-Feb-2014 06:04:50 [INFO]   App Framework Module API
12-Feb-2014 06:04:50 [INFO]   App Framework Module OMOD
12-Feb-2014 06:04:52 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:52 [INFO] Building App Framework Module
12-Feb-2014 06:04:52 [INFO]    task-segment: [clean, package]
12-Feb-2014 06:04:52 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:52 [INFO] [clean:clean {execution: default-clean}]
12-Feb-2014 06:04:55 [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
12-Feb-2014 06:04:55 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:55 [INFO] Building App Framework Module Apps for testing
12-Feb-2014 06:04:55 [INFO]    task-segment: [clean, package]
12-Feb-2014 06:04:55 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:55 [INFO] [clean:clean {execution: default-clean}]
12-Feb-2014 06:04:55 [INFO] [resources:resources {execution: default-resources}]
12-Feb-2014 06:04:55 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:04:55 [INFO] Copying 5 resources
12-Feb-2014 06:04:56 [INFO] [compiler:compile {execution: default-compile}]
12-Feb-2014 06:04:56 [INFO] No sources to compile
12-Feb-2014 06:04:56 [INFO] [resources:testResources {execution: default-testResources}]
12-Feb-2014 06:04:56 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:04:56 [INFO] Copying 5 resources
12-Feb-2014 06:04:56 [INFO] [compiler:testCompile {execution: default-testCompile}]
12-Feb-2014 06:04:56 [INFO] No sources to compile
12-Feb-2014 06:04:56 [INFO] [surefire:test {execution: default-test}]
12-Feb-2014 06:04:56 [INFO] Tests are skipped.
12-Feb-2014 06:04:57 [INFO] [jar:jar {execution: default-jar}]
12-Feb-2014 06:04:57 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/appsfortesting/target/appframework-appsfortesting-2.2-SNAPSHOT.jar
12-Feb-2014 06:04:57 [INFO] [jar:test-jar {execution: default}]
12-Feb-2014 06:04:57 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/appsfortesting/target/appframework-appsfortesting-2.2-SNAPSHOT-tests.jar
12-Feb-2014 06:04:57 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:57 [INFO] Building App Framework Module API
12-Feb-2014 06:04:57 [INFO]    task-segment: [clean, package]
12-Feb-2014 06:04:57 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:04:57 [INFO] [clean:clean {execution: default-clean}]
12-Feb-2014 06:04:57 [INFO] [resources:resources {execution: default-resources}]
12-Feb-2014 06:04:57 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:04:57 [INFO] Copying 4 resources
12-Feb-2014 06:05:00 [INFO] [compiler:compile {execution: default-compile}]
12-Feb-2014 06:05:00 [INFO] Compiling 23 source files to /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/api/target/classes
12-Feb-2014 06:05:05 [INFO] [resources:testResources {execution: default-testResources}]
12-Feb-2014 06:05:05 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:05:05 [INFO] Copying 6 resources
12-Feb-2014 06:05:05 [INFO] [compiler:testCompile {execution: default-testCompile}]
12-Feb-2014 06:05:05 [INFO] Compiling 15 source files to /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/api/target/test-classes
12-Feb-2014 06:05:09 [INFO] [surefire:test {execution: default-test}]
12-Feb-2014 06:05:09 [INFO] Tests are skipped.
12-Feb-2014 06:05:09 [INFO] [jar:jar {execution: default-jar}]
12-Feb-2014 06:05:09 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/api/target/appframework-api-2.2-SNAPSHOT.jar
12-Feb-2014 06:05:09 [INFO] [jar:test-jar {execution: default}]
12-Feb-2014 06:05:09 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/api/target/appframework-api-2.2-SNAPSHOT-tests.jar
12-Feb-2014 06:05:09 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:09 [INFO] Building App Framework Module OMOD
12-Feb-2014 06:05:09 [INFO]    task-segment: [clean, package]
12-Feb-2014 06:05:09 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:09 [INFO] [clean:clean {execution: default-clean}]
12-Feb-2014 06:05:09 [INFO] [openmrs:initialize-module {execution: init}]
12-Feb-2014 06:05:12 [INFO] [dependency:unpack-dependencies {execution: Expand moduleApplicationContext and messages}]
12-Feb-2014 06:05:13 [INFO] Unpacking /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/api/target/appframework-api-2.2-SNAPSHOT.jar to /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/classes with includes "**/*" and excludes ""
12-Feb-2014 06:05:13 [INFO] [resources:resources {execution: default-resources}]
12-Feb-2014 06:05:13 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:05:13 [INFO] Copying 2 resources
12-Feb-2014 06:05:13 [INFO] Copying 1 resource to web/module
12-Feb-2014 06:05:13 [INFO] Copying 0 resource to web/module
12-Feb-2014 06:05:13 [INFO] Copying 1 resource to web/module
12-Feb-2014 06:05:13 [INFO] [compiler:compile {execution: default-compile}]
12-Feb-2014 06:05:13 [INFO] Compiling 2 source files to /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/classes
12-Feb-2014 06:05:14 [INFO] [resources:testResources {execution: default-testResources}]
12-Feb-2014 06:05:14 [INFO] Using 'UTF-8' encoding to copy filtered resources.
12-Feb-2014 06:05:14 [INFO] skip non existing resourceDirectory /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/src/test/resources
12-Feb-2014 06:05:14 [INFO] [compiler:testCompile {execution: default-testCompile}]
12-Feb-2014 06:05:14 [INFO] Compiling 1 source file to /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/test-classes
12-Feb-2014 06:05:15 [INFO] [surefire:test {execution: default-test}]
12-Feb-2014 06:05:15 [INFO] Tests are skipped.
12-Feb-2014 06:05:15 [INFO] [jar:jar {execution: default-jar}]
12-Feb-2014 06:05:15 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/appframework-2.2-SNAPSHOT.jar
12-Feb-2014 06:05:15 [INFO] [openmrs:package-module {execution: pack}]
12-Feb-2014 06:05:15 [INFO] Packaging OpenMRS module
12-Feb-2014 06:05:15 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/appframework-2.2-SNAPSHOT.omod
12-Feb-2014 06:05:16 [INFO] [jar:test-jar {execution: default}]
12-Feb-2014 06:05:16 [INFO] Building jar: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1/omod/target/appframework-2.2-SNAPSHOT-tests.jar
12-Feb-2014 06:05:16 [INFO]
12-Feb-2014 06:05:16 [INFO]
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 [INFO] Reactor Summary:
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 [INFO] App Framework Module .................................. SUCCESS [2.725s]
12-Feb-2014 06:05:16 [INFO] App Framework Module Apps for testing ................. SUCCESS [2.374s]
12-Feb-2014 06:05:16 [INFO] App Framework Module API .............................. SUCCESS [11.984s]
12-Feb-2014 06:05:16 [INFO] App Framework Module OMOD ............................. SUCCESS [6.551s]
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 [INFO] BUILD SUCCESSFUL
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 [INFO] Total time: 26 seconds
12-Feb-2014 06:05:16 [INFO] Finished at: Wed Feb 12 06:05:16 EST 2014
12-Feb-2014 06:05:16 [INFO] Final Memory: 83M/395M
12-Feb-2014 06:05:16 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:16 Finished task 'Build'
12-Feb-2014 06:05:16 Starting task 'Generate Sonar Reports for this build at https://ci-stg.openmrs.org/sonar/' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn2'
12-Feb-2014 06:05:16
Beginning to execute external process for build 'Sonar - App Framework - Default Job'
... running command line:
/usr/share/maven2/bin/mvn
-Djava.io.tmpdir=/tmp/SON-SONAR-JOB1
sonar:sonar
... in: /opt/bamboo-agent/agent1-home/xml-data/build-dir/SON-SONAR-JOB1
... using extra environment variables:
bamboo_mavenBuildGoals=clean install
MAVEN2_HOME=/usr/share/maven2
JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
M2_HOME=/usr/share/maven2
PATH=/usr/lib/jvm/java-6-openjdk-amd64/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
12-Feb-2014 06:05:17 [INFO] Scanning for projects...
12-Feb-2014 06:05:18 [INFO] Reactor build order:
12-Feb-2014 06:05:18 [INFO]   App Framework Module
12-Feb-2014 06:05:18 [INFO]   App Framework Module Apps for testing
12-Feb-2014 06:05:18 [INFO]   App Framework Module API
12-Feb-2014 06:05:18 [INFO]   App Framework Module OMOD
12-Feb-2014 06:05:18 [INFO] Searching repository for plugin with prefix: 'sonar'.
12-Feb-2014 06:05:18 [INFO] org.apache.maven.plugins: checking for updates from openmrs-repo
12-Feb-2014 06:05:18 [INFO] org.codehaus.mojo: checking for updates from openmrs-repo
12-Feb-2014 06:05:18 [INFO] artifact org.codehaus.mojo:sonar-maven-plugin: checking for updates from openmrs-repo
12-Feb-2014 06:05:18 [INFO] Ignoring available plugin update: 2.2 as it requires Maven version 3.0
12-Feb-2014 06:05:19 [INFO] Ignoring available plugin update: 2.1 as it requires Maven version 3.0
12-Feb-2014 06:05:19 [INFO] Ignoring available plugin update: 2.0 as it requires Maven version 3.0
12-Feb-2014 06:05:19 [INFO] Ignoring available plugin update: 2.0-beta-2 as it requires Maven version 3.0
12-Feb-2014 06:05:19 [INFO] Ignoring available plugin update: 2.0-beta-1 as it requires Maven version 3.0
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [INFO] Building App Framework Module
12-Feb-2014 06:05:20 [INFO]    task-segment: [sonar:sonar] (aggregator-style)
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [INFO] [sonar:sonar {execution: default-cli}]
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [ERROR] BUILD ERROR
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [INFO] Sonar server can not be reached. Please check the parameter 'sonar.host.url': http://localhost:9000
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [INFO] For more information, run Maven with the -e switch
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 [INFO] Total time: 2 seconds
12-Feb-2014 06:05:20 [INFO] Finished at: Wed Feb 12 06:05:20 EST 2014
12-Feb-2014 06:05:20 [INFO] Final Memory: 11M/104M
12-Feb-2014 06:05:20 [INFO] ------------------------------------------------------------------------
12-Feb-2014 06:05:20 Failing task since return code was 1 while expected 0
12-Feb-2014 06:05:20 Parsing test results...
12-Feb-2014 06:05:20 Finished task 'Generate Sonar Reports for this build at https://ci-stg.openmrs.org/sonar/'
12-Feb-2014 06:05:20 Running post build plugin 'Artifact Copier'
12-Feb-2014 06:05:20 Running post build plugin 'NCover Results Collector'
12-Feb-2014 06:05:20 Running post build plugin 'Clover Results Collector'
12-Feb-2014 06:05:20 Running post build plugin 'Cleanup Build Processor'
12-Feb-2014 06:05:20 Finalising the build...
12-Feb-2014 06:05:20 Stopping timer.
12-Feb-2014 06:05:20 Build SON-SONAR-JOB1-124 completed.
12-Feb-2014 06:05:20 Running on server: post build plugin 'NCover Results Collector'
12-Feb-2014 06:05:21 Running on server: post build plugin 'Clover Delta Calculator'
12-Feb-2014 06:05:21 Running on server: post build plugin 'Build Hanging Detection Configuration'
12-Feb-2014 06:05:21 Running on server: post build plugin 'Maven Dependencies Postprocessor'
12-Feb-2014 06:05:21 All post build plugins have finished
12-Feb-2014 06:05:21 Generating build results summary...
12-Feb-2014 06:05:21 Saving build results to disk...
12-Feb-2014 06:05:21 Indexing build results...
12-Feb-2014 06:05:21 Finished building SON-SONAR-JOB1-124.