Azure Devops Publish Quality Gate Result task is failing with error 401

Hi Sonar Team,
Here’s my SonarQube and extension Version:
SonarQube version:7.9.2
SonarQube-PostgreSQL:11.6.0
Publish Quality Gate Result Plugin:4.8.1
I’m tring to use Publish Quality Gate Result on Azure Devops. And quite strange error is:

##[error][SQ] Could not fetch metrics
##[error][SQ] API GET '/api/metrics/search' failed, status code was: 401
##[error][SQ] API GET '/api/ce/task' failed, status code was: 401
##[error][SQ] Could not fetch task for ID 'AXyX2NicZFOYTcgrE9G8'

How can I analyze this error and fix it?

Hi,

Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.2 → 8.9.2 → 9.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your actual question, 401 is a permissions error. It looks like you need to authenticate the requests.

 
Ann

9 posts were split to a new topic: Analysis works, but 401 on Quality Gate results