Sonar Runner task is not working with Bamboo version 5.7.2

Hi,

I have used plugin bamboo-sonar-tasks-1.8.1 for Bamboo version 5.7.2 and create a Sonar Runner task. While executing, I am facing below error, Kindly help.

 

 

simple	28-Jan-2015 10:16:12	Starting task 'Sonar Runner' of type 'com.marvelution.bamboo.plugins.sonar.tasks:task.builder.sonar'
command	28-Jan-2015 10:16:12	Beginning to execute external process for build 'Phone_Store - PhoneStore Grunt Build - Default Job #35 (MVN-PGB-JOB1-35)'\n ... running command line: \nD:\PE\Sonar\sonar-runner-dist-2.4\sonar-runner-2.4\bin\sonar-runner\n ... in: D:\bamboo-home\xml-data\build-dir\MVN-PGB-JOB1\n ... using extra environment variables: \nbamboo_capability_system_jdk_JDK_1_7=C:\Program Files\Java\jdk1.7.0_67\nJAVA_HOME=C:\Program Files\Java\jdk1.7.0_67\nbamboo_planRepository_type=git\nbamboo_shortPlanName=PhoneStore Grunt Build\nbamboo_planKey=MVN-PGB\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__32bit_=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe\nbamboo_repository_git_repositoryUrl=D:\PE\Demo2\Demo2\Grunt_Jasmine\Grunt_Jasmine\.git\nbamboo_planRepository_1_branchName=master\nbamboo_shortPlanKey=PGB\nbamboo_shortJobKey=JOB1\nbamboo_build_commandline_com_atlassian_bamboo_plugins_bamboo_nodejs_plugin_task_builder_grunt_2=C:\Program Files\nodejs\node.exe node_modules\grunt-cli\bin\grunt build\nbamboo_build_working_directory=D:\bamboo-home\xml-data\build-dir\MVN-PGB-JOB1\nbamboo_planRepository_1_branch=master\nbamboo_repository_revision_number=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_planName=Phone_Store - PhoneStore Grunt Build\nbamboo_buildResultsUrl=http://10.11.165.24:8085/browse/MVN-PGB-JOB1-35\nbamboo_planRepository_revision=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_buildResultKey=MVN-PGB-JOB1-35\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__64bit_=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__32bit_=C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe\nbamboo_repository_git_username=\nbamboo_repository_2752513_revision_number=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_capability_system_jdk_JDK_1_7_0_67=C:\Program Files\Java\jdk1.7.0_67\nbamboo_buildKey=MVN-PGB-JOB1\nbamboo_repository_previous_revision_number=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_repository_2752513_git_repositoryUrl=D:\PE\Demo2\Demo2\Grunt_Jasmine\Grunt_Jasmine\.git\nbamboo_working_directory=D:\bamboo-home\xml-data\build-dir\MVN-PGB-JOB1\nbamboo_capability_system_builder_snr_sonar_runner=D:\PE\Sonar\sonar-runner-dist-2.4\sonar-runner-2.4\nbamboo_repository_2752513_previous_revision_number=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_repository_2752513_name=Demo2 Repository\nbamboo_capability_system_builder_node_Node_js=C:\Program Files\nodejs\node.exe\nbamboo_capability_system_builder_sor_sonar_runner=D:\PE\Sonar\sonar-runner-dist-2.4\sonar-runner-2.4\nbamboo_agentWorkingDirectory=D:\bamboo-home\xml-data\build-dir\nSONAR_RUNNER_HOME=D:\PE\Sonar\sonar-runner-dist-2.4\sonar-runner-2.4\nbamboo_repository_2752513_git_branch=master\nbamboo_buildPlanName=Phone_Store - PhoneStore Grunt Build - Default Job\nbamboo_repository_name=Demo2 Repository\nbamboo_repository_2752513_git_username=\nbamboo_resultsUrl=http://10.11.165.24:8085/browse/MVN-PGB-JOB1-35\nbamboo_repository_git_branch=master\nbamboo_planRepository_1_revision=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_ManualBuildTriggerReason_userName=aa\nbamboo_planRepository_1_type=git\nbamboo_planRepository_1_previousRevision=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_planRepository_1_name=Demo2 Repository\nbamboo_planRepository_branch=master\nbamboo_planRepository_username=\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__64bit_=C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=C:\Program Files\Java\jdk1.7.0_67\nbamboo_shortJobName=Default Job\nbamboo_repository_branch_name=master\nbamboo_agentId=131073\nbamboo_planRepository_previousRevision=0b255145b7f9a99af9302460a579b4fa49a2d5f6\nbamboo_planRepository_1_repositoryUrl=D:\PE\Demo2\Demo2\Grunt_Jasmine\Grunt_Jasmine\.git\nbamboo_planRepository_repositoryUrl=D:\PE\Demo2\Demo2\Grunt_Jasmine\Grunt_Jasmine\.git\nbamboo_capability_system_builder_mvn3_Maven_3_x=D:\apache-maven-3.0.4\nbamboo_repository_2752513_branch_name=master\nbamboo_dependenciesDisabled=false\nbamboo_planRepository_1_username=\nbamboo_planRepository_name=Demo2 Repository\nbamboo_buildNumber=35\nbamboo_buildTimeStamp=2015-01-28T10:16:04.075+05:30\nPath=C:\Program Files\Java\jdk1.7.0_67\bin;D:\oracle\product\10.2.0\client_1;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\nodejs\;C:\Program Files\TortoiseSVN\bin\n
simple	28-Jan-2015 10:16:12	Failing task since return code of [D:\PE\Sonar\sonar-runner-dist-2.4\sonar-runner-2.4\bin\sonar-runner] was -1 while expected 0
simple	28-Jan-2015 10:16:12	Finished task 'Sonar Runner' with result: Failed

Thanks.

2 answers

0 vote

https://marketplace.atlassian.com/plugins/com.marvelution.bamboo.plugins.sonar.tasks version 1.8.1 is only compatible with Bamboo 5.0 - 5.1. This plugin is provided by a 3rd party developer (Marvelution) who dropped the support so Atlassian can't really help here.

AFAIK Marvelution open sourced this plugin so you can pick up their work and make it compatible with most recent Bamboo.

Hello, 

We have encountered the same issue. We succeeded to compile the source code for bamboo 5.7.x.

It works great.!

How did you get the plugin to compile? Could you provide any tips or even the working jars?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 10 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

34 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you