Code Monkey home page Code Monkey logo

gocd-plugins's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gocd-plugins's Issues

I am receiving an error related to org.json when trying to use the latest SonarQube QualityGate plugin

I am running SonarQube Version 6.5 (build 27846) on Amazon Linux and GoVersion: 17.10.0 (5380-05598d88fd4dabdde1184faa4fbffc5f9406d0dc) also running on Amazon Linux.

The error message:

[go] Task: Plugin with ID: sonar.quality.gate.plugin
[SonarQube Quality Gate Plugin] configuration setting 'SonarProjectKey' is 'org.company.project:Project'
[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 'warning'
[SonarQube Quality Gate Plugin] configuration setting 'SonarApiUrl' is 'http://10.71.10.112:9000'
[SonarQube Quality Gate Plugin] checking quality gate result for: org.company.project:Project
[SonarQube Quality Gate Plugin] API Url: http://10.71.10.112:9000
[SonarQube Quality Gate Plugin] Fail if: warning
[SonarQube Quality Gate Plugin] Error during get or parse of quality gate result. Please check if a quality gate is defined
A JSONArray text must start with '[' at 1 [character 2 line 1]
class org.json.JSONException declares multiple JSON fields named cause

docker plugins

what do those docker-compose and docker-machine plugins offer as functionality?
Thanks for your work!

Getting JSON exception in SonarQube QualityGate plugin:: org.json.JSONException declares multiple JSON fields named cause

I am running SonarQube version 6.7.

Stack Trace

[go] Task: Plugin with ID: sonar.quality.gate.plugintook: 0.109s
[SonarQube Quality Gate Plugin] configuration setting 'SonarProjectKey' is 'TestApp'
[SonarQube Quality Gate Plugin] configuration setting 'StageName' is 'grep'
[SonarQube Quality Gate Plugin] configuration setting 'JobCounter' is ''
[SonarQube Quality Gate Plugin] configuration setting 'JobName' is 'curl'
[SonarQube Quality Gate Plugin] configuration setting 'IssueTypeFail' is 'warning'
[SonarQube Quality Gate Plugin] configuration setting 'SonarApiUrl' is 'http://localhost:9000/api'
[SonarQube Quality Gate Plugin] checking quality gate result for: TestApp
[SonarQube Quality Gate Plugin] API Url: http://localhost:9000/api
[SonarQube Quality Gate Plugin] Fail if: warning
[SonarQube Quality Gate Plugin] Error during get or parse of quality gate result. Please check if a quality gate is defined
JSONObject["parameter"] not found.
class org.json.JSONException declares multiple JSON fields named cause

Parameter is not there in the JSON recieved
https://github.com/charleston10/gocd-plugins/blob/master/sonar-qualitygates-plugin/src/com/tw/go/task/sonarqualitygate/SonarTaskExecutor.java#L56

Question: which logical name of dockerhost using docker-compose plugin?

I'm trying to setup a docker-compose task to spin up a gradle container, in order to build jar artifacts.

During task setup, the plugin requires the "Logical name of dockerhost", which I'm trying to set to my host running the gocd agent (which has docker and docker-compose installed).

But while running, the task gives an error, saying:

[Docker Compose] trying to use docker-compose with unknown machine

What should I set in that field?

Plugin not able to find qualityGate

image

Have the plugin all set up and I have the quality gate set to the default sonarQube way. But I am still getting an error that it cannot be found. Is there a fix for this or is it just a problem with my set up?

Pipeline with plugin does not run

Hi,

I have the following problem when running a step as shown in the plugin settings, follow the error below:

17:20:47.568 [SonarQube Quality Gate Plugin] Fail if: error
17:20:47.598 Error: Interaction with plugin with id 'sonar.quality.gate.plugin' implementing 'task' extension failed while requesting for 'execute'. Reason: [The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: '{"exception":null,"success":false,"message":"At least one Error in Quality Gate"}']
17:20:47.604 [go] Current job status: failed.

Someone could help me, grateful already.

Plugin throw exception and fails when QG is violated

Plugin fails when QG is violated.

[SonarQube Quality Gate Plugin] Fail if: warning
Error: Interaction with plugin with id 'sonar.quality.gate.plugin' implementing 'task' extension failed while requesting for 'execute'. Reason: [The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: '{"exception":null,"success":false,"message":"At least one Error or Warning in Quality Gate"}']

SonarQube: Version 5.4

Thanks,
Syed

Authentication error

Hi,

I´m receiving a 401 error:

Error: Interaction with plugin with id 'sonar.quality.gate.plugin' implementing 'task' extension failed while requesting for 'execute'. Reason: [The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: '{"exception":{"detailMessage":"Failed : HTTP error code : 401","stackTrace":[],"suppressedExceptions":[]},"success":false,"message":"Failed to get quality gate for project. Please check if a quality gate is defined"}'

How do I pass Sonar credentials?
Thanks

Sonar Qualitygates plugin doesn't show the correct status on immediate run

We tried integrating the sonar-qualitygates-plugin with our app and found that it wasn't showing the correct status of the quality gate after running. On subsequent runs, it started showing the correct result.

We think that it may be because the sonar server was still processing the result while the plugin queried the server. We see the following message from sonar after the run:

Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.

Also, this documentation indicates that we must poll the sonar server for the status before we check the quality gates.

Plugin not working with GoCD Version: 19.5.0

@charleston10 hey
I am facing this issue i used all 3 plugins mentioned in repo , also
is this thing merged in code bec still i am able to c parameter in periods .

charleston10#1

[go] Task: Plugin with ID: sonar.quality.gate.plugintook: 0.156s
[SonarQube Quality Gate Plugin] configuration setting 'SonarProjectKey' is 'test'
[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 'warning'
[SonarQube Quality Gate Plugin] configuration setting 'SonarApiUrl' is 'xyz'
[SonarQube Quality Gate Plugin] checking quality gate result for: test
[SonarQube Quality Gate Plugin] API Url: xyz
[SonarQube Quality Gate Plugin] Fail if: warning
[SonarQube Quality Gate Plugin] Error during get or parse of quality gate result. Please check if a quality gate is defined
A JSONObject text must begin with '{' at 1 [character 2 line 1]
class org.json.JSONException declares multiple JSON fields named cause
[go] Task status: failed, took: 0.156s
[go] Current job status: failed

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

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

Support for user auth

Does the plugin have support for accepting user credentials if the Sonar server needs authentication? I could not locate an option for the same in settings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.