My job consits on two tasks
1. - Checkout task from a git repository
2.- Sonar runner task.
The sonnar runner task properties are the following:
executable : Sonar Runner
Build JDK :JDK
Sonar Server Configuration
Sonar Server : Sonar Qube (added in servers) with following configuration:
Base URL: http://10.202.155.18:9000Anonymous Instance Datasource Details: URL: jdbc:jtds:sqlserver://10.202.154.83/sonardb Driver: net.sourceforge.jtds.jdbc.Driver Username: sonardbuser
the check "The project sources contain
the sonar-project.properties file." is on my sonar-project.properties file is in the build directory with this content:
sonar.projectKey=seat:GestionEnsayosEK
sonar.projectVersion=1.0-SNAPSHOT
sonar.projectName=GestionEnsayosEK # Info required for SonarQube
sonar.sources=/GestionEnsayosEK_2010 sonar.language=cs # To prevent any issues while analyzing multiple solutions containing projects with similar keys # Will be set by default to safe starting at version 2.2: http://jira.codehaus.org/browse/SONARDOTNT-339
sonar.dotnet.key.generation.strategy=safe #Core C# Settings
sonar.dotnet.visualstudio.solution.file=/GestionEnsayosEK_2010/GestionEnsayosEK.sln
sonar.dotnet.excludeGeneratedCode=true
sonar.dotnet.4.0.sdk.directory=C:/Windows/Microsoft.NET/Framework/v2.0.50727
sonar.dotnet.version=2.0 sonar.sourceEncoding=UTF-8 #Gendarme sonar.gendarme.mode=skip # Gallio / Unit Tests sonar.gallio.mode=skip sonar.gallio.coverage.tool=OpenCover
sonar.gallio.runner=Local sonar.dotnet.visualstudio.testProjectPattern=*UnitTest*;Testing*
sonar.opencover.installDirectory=C:/Program Files (x86)/OpenCover/ # FXCop
sonar.fxcop.mode=skip # StyleCop sonar.stylecop.mode= # NDeps sonar.ndeps.mode=
if I execute the command sonnar-runner from this directory manually , sonar runner works fine, but when I execute the plan I always get the same error:
command 07-mar-2014 16:04:26 Beginning to execute external process for build 'PrEElectronica - PlanEE - Default Job #15 (PREEL-PLAN-JOB1-15)'\n ... running command line: \nC:\sonar-runner-2.3\bin\sonar-runner -D sonar.jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver -D sonar.jdbc.url=jdbc:jtds:sqlserver://10.202.154.83/sonardb -D sonar.jdbc.username=sonardbuser -D sonar.jdbc.password=****** -D sonar.host.url=http://10.202.155.18:9000\n ... in: C:\BAMBOO\xml-data\build-dir\PREEL-PLAN-JOB1\n ... using extra environment variables: \nJAVA_HOME=C:\Program Files\Java\jre6\nSONAR_RUNNER_HOME=C:\sonar-runner-2.3\nPath=C:\Program Files\Java\jre6\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jre6\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\sonar-runner-2.3\bin\n simple 07-mar-2014 16:04:26 Failing task since return code of [C:\sonar-runner-2.3\bin\sonar-runner -D sonar.jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver -D sonar.jdbc.url=jdbc:jtds:sqlserver://10.202.154.83/sonardb -D sonar.jdbc.username=sonardbuser -D sonar.jdbc.password=****** -D sonar.host.url=http://10.202.155.18:9000] was -1 while expected 0 simple 07-mar-2014 16:04:26 Finished task 'Sonar Runner'
How can I solve this??
Thanks in advance, Miguel Angel Vázquez
Community moderators have prevented the ability to post new answers.
I am also facing this same issue. I am using bamboo 5.1.1
Any solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.