haufe-lexware / gocd-plugins Goto Github PK
View Code? Open in Web Editor NEWA collection of our OSS plugins for use with Go.CD
License: Apache License 2.0
A collection of our OSS plugins for use with Go.CD
License: Apache License 2.0
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
what do those docker-compose and docker-machine plugins offer as functionality?
Thanks for your work!
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
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?
Do I need a Agent Docker Image that can run the docker-compose task?
I assume I'd need an agent container that can run docker commands inside (docker-within-docker)?
Does docker-pipeline plugin require docker machine installation on goad-agent?
It would be nice to tag images with the git revision hash.
Example of environment variables here: https://docs.go.cd/current/configuration/admin_use_custom_pipeline_label.html
Ideally I'd like to use something like: ${git[:7]}
in the tag field, to tag a docker image with the git short hash.
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 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
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
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.
@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 .
[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
Seems the API of sonarqube changed after v6.3, any one met this issue?
Please add CLA via cla-assistant.io .
This would be a CLA proposal, which is identical to the GitHub CLA, which in turn is a simplified Apache Individual Contributions Agreement (AICA):
https://gist.github.com/DonMartin76/b35182c830fad771d31e2cd98be2b9ac
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.