How to edit value of predefined configuration parameter from shell?

Hi, all! Please, help me with my problem.

In Maven step I used  goals: "clean install sonar:sonar -Dsonar.forceAnalysis=true -Dsonar.branch=[]".
Later I added configuration parameter "sonar_goals", and set it to "sonar:sonar -Dsonar.forceAnalysis=true -Dsonar.branch=[]".
After that my Maven goals looked like: "clean install %sonar_goals%".

So, the problem.
In case of building master branch Maven step is failing because returns value "<default>", and '<>' are illegal characters, which can't be passed to sonar plugin.
I decided to make  command line step, which will go before Maven and check if equals** <default>.

if [ "" = "" ]
    echo "Building master branch"

Original message URL:


Please sign in to leave a comment.