Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

sonar.quality.gate.plugin not working with GOCD pipeline #30

@shivani-hotstar

Description

@shivani-hotstar

I am using sonarqube version : 7.9.1 and GOCD version: 19.5.0 .

ISSUE:-

[go] Task: Plugin with ID: sonar.quality.gate.plugintook: 1.263s
[SonarQube Quality Gate Plugin] configuration setting 'SonarProjectKey' is 'xyz-projects'
[SonarQube Quality Gate Plugin] configuration setting 'StageName' is ''
[SonarQube Quality Gate Plugin] configuration setting 'JobCounter' is ''
[SonarQube Quality Gate Plugin] configuration setting 'JobName' is ''
[SonarQube Quality Gate Plugin] configuration setting 'IssueTypeFail' is 'error'
[SonarQube Quality Gate Plugin] configuration setting 'SonarApiUrl' is 'https://sonarqube.abc.com/api/qualitygates/project_status?projectKey=xyz-projects'
[SonarQube Quality Gate Plugin] checking quality gate result for: xyz-projects
[SonarQube Quality Gate Plugin] API Url: https://sonarqube.abc.com/api/qualitygates/project_status?projectKey=xyz-projects
[SonarQube Quality Gate Plugin] Fail if: error
[SonarQube Quality Gate Plugin] Error during get or parse of quality gate result. Please check if a quality gate is defined
REST call failed; URL=https://sonarqube.abc.com/api/qualitygates/project_status?projectKey=xyz-projects/qualitygates/project_status?projectKey=xyz-projects; Code=401; Message=
Failed to get quality gate for xyz-projects. Please check if a quality gate is defined

i have tried with :- [SonarQube Quality Gate Plugin] API Url: https://sonarqube.abc.com/api this url as well but same error.

Plugin i am using :-
Screenshot 2019-09-09 at 4 03 47 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions