Hi all,
This is related to my continued Sonar automation project, but seemed a distinct enough query to warrant its own thread.
TL;DR version: is there a way to obtain the parameters that were passed to SonarQube Cloud after performing an analysis? I’m specifically after sonar.projectVersion
.
I was hoping I could pull this from report-task.txt
, but it seems limited to:
organization={}
projectKey={}
serverUrl=https://sonarcloud.io
serverVersion={}
dashboardUrl=https://sonarcloud.io/dashboard?id={}&branch={}
ceTaskId={}
ceTaskUrl=https://sonarcloud.io/api/ce/task?id={}
I’ve tried retrieving the ceTask from the API using the supplied link, but it doesn’t seem to include the parameters either.
I was hoping to use this information to make some inferences on how a project is handling versioning, and auto-configure the new code properties based on that inference.
Cheers,
Jack.