I have global variable bamboo.sonar.url and maven3 task Goal field looks like
clean test package sonar:sonar -Dsonar.host.url=${bamboo.sonar.url}
Unfotunately this configuration does not seem working.
In execution logs I see this line /usr/share/maven/bin/mvn --batch-mode -Djava.io.tmpdir=/srv/bamboo/current/temp/SERVER-SERSKKM10-SR clean test package sonar:sonar -Dsonar.host.url=${bamboo.sonar.url}
and this line
bamboo_sonar_url=sonarqube.esc.hq
As a result maven task falis on sonarqube connection.
Please explain how global variable can be passed to maven
So did you configure a variable (probably a global variable) with the name sonar.url
Once you do that you should be able to pass ${bamboo.sonar.url} as an argument. Keep in mind that sonar is looking for a URL so sonarqube.esc.hq would not be a valid url. That whole nuisance "http://" thing must be there for it to qualify as a URL.
Is it not possible to configure maven task using variables?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.