sonar.profile - What's the replacement for Maven?

386 views
Skip to first unread message

paulc...@gmail.com

unread,
Aug 16, 2017, 2:19:21 PM8/16/17
to SonarQube
We're currently using the Maven sonar plugin to create many branch builds in SonarQube.  These branch builds are using sonar.profile to automatically assign the correct profile to branch builds - some are long-lived, some are short lived, but manual intervention of any kind is not an option.

That being said, if going forward sonar.profile is removed, how can you assign profiles to Sonar builds (existing or new) through the Maven sonar plugin?  There's the "profile" property that you use in the plugin configuration in the POM, but in the end, isn't that just sonar.profile, too?

Thanks!

G. Ann Campbell

unread,
Aug 16, 2017, 3:52:33 PM8/16/17
to SonarQube, paulc...@gmail.com
Hi Paul,

Assuming some level of automation, what I'd do is use web services to provision the new branches, then configure them with the desired profile.


Ann

paulc...@gmail.com

unread,
Aug 16, 2017, 4:40:16 PM8/16/17
to SonarQube, paulc...@gmail.com
Thanks for the reply, but that's a very convoluted approach compared to how we're able to do it now and is not a good replacement for that soon-to-be-lost ease of use and functionality that sonar.profile now provides :(

mohan...@gmail.com

unread,
Aug 17, 2017, 4:25:06 AM8/17/17
to SonarQube, paulc...@gmail.com
Hi Ann,

We are using multi branch pipe line in jenkins which will create dynamic jobs for branches bugfix/features which is running against sonarqube for quality analysis as of now we are setting the -Dsonar.profile which is not working in sonarqube 5.6.3. or else this will be a manual job to configure profile.

G. Ann Campbell

unread,
Aug 17, 2017, 9:00:54 AM8/17/17
to mohan...@gmail.com, SonarQube, paulc...@gmail.com
Hi,

I'm not sure what you're talking about. sonar.profile is deprecated, but hasn't been removed yet.


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/sK3-5zrBIBY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1ff1ea48-52bb-4f7c-8c8b-f3be65ca0fba%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages