seems to work fine I'm following the documentation on the Sonarqube web api for getting/setting properties. I'd like to set a property on project pi_core with the property name "appName" and the value "UCFE". Ultimately I want to fully automate this via PowerShell but for now I'm just trying to validate the concepts using curl just like the docs. My command is: , To start with, close the URI in quotes;
curl -u myID:myPassword -X POST 'http://myServer.ad1.prod:9000/api/properties?id=appName&value=UCFE&resource=pi_core'
To fix this issue Turns out that the MsBuild runner looks at the full path of your project to see if it's a Test project. so if your Build agent name or Build definition name or any folder leading up to your project file has the word "test" in it, all projects will be considered a test. As discussed offline, in your case it was the Build Definition name. Renaming it to not be named "SonarQubeTestBuild" solved the issue.
Setting up gradle org.sonarqube plugin sonar analysis task (sonarqube) in jenkins
I hope this helps . I think that you are referring to the following improvement that we want to do on the Jenkins SonarQube plugin: SONARJNKNS-217 This should come sooner or later. In the meantime, you're right, there's no easier way than what you described - unfortunately.
Setting dynamic velocity properties for archetype maven projects
wish helps you I am creating an archetype and want to create a project wide available property containing things like the current date and an all lower case variant of the artifact id. I found the following post on Stackoverflow, that shows how it normally should be possible. , This should work: