Global variable cannot be passed to maven

I have global variable bamboo.sonar.url and maven3 task Goal field looks like
clean test package sonar:sonar${bamboo.sonar.url}
Unfotunately this configuration does not seem working.

In execution logs I see this line /usr/share/maven/bin/mvn --batch-mode clean test package sonar:sonar${bamboo.sonar.url}
and this line

As a result maven task falis on sonarqube connection.
Please explain how global variable can be passed to maven

2 answers

Is it not possible to configure maven task using variables?

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.


Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted yesterday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

242 views 35 9
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot