The parameters of /api/qualitygates/project_status is illogical

/api/qualitygates/project_status this api need Either 'analysisId', 'projectId' or 'projectKey' must be provided. It is not commom because it is enough to provide one of ‘projectId’ and ‘projectKey’. So if i provide projectKey, i must provide ‘projectId’ too. But luckily i can write anything but empty into ‘projectId’.

Hi,

My tests show that projectId is not required if you provide projectKey. Providing projectKey will give you the current status. Using analysisId will give you the status after a specific analysis - current or previous.

 
Ann

1 Like