You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have detected when enabling the enforcement of quality gate for sonarqube that it always gets, from whatever branch you are scanning, the default branch (usually master).
To Reproduce
Steps to reproduce the behavior:
Create a branch on your repo and enable the quality gate
Check the report is returning the info from default branch, not the one in scope
Pipeline might fail or not as false info is back
Expected behavior
To get the quality gate info from the right branch in scope of that pipeline.
Screenshots
N/A
Affected version (please complete the following information):
OpenShift: all
OpenDevStack all
Log Output (ensure to remove any confidential information like tokens, project names, etc.
API call does not use the branch query parameter:
Ok @braisvq1996 we found out that the & parameter in the URL was a problem so we need to provide a fix by using the full cURL CLI with flags for url encodings.
I would recommend to go full on flags anywhere we use cURL CLI in the lib.
Describe the bug
We have detected when enabling the enforcement of quality gate for sonarqube that it always gets, from whatever branch you are scanning, the default branch (usually master).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To get the quality gate info from the right branch in scope of that pipeline.
Screenshots
N/A
Affected version (please complete the following information):
Log Output (ensure to remove any confidential information like tokens, project names, etc.
API call does not use the branch query parameter:
ods-jenkins-shared-library/src/org/ods/services/SonarQubeService.groovy
Line 88 in befbc61
Additional context
Must be fixed
The text was updated successfully, but these errors were encountered: