-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Gitlab] Switch to turn off failing of pipeline #137
Comments
Switch to turn off failing of pipeline
You could reconfigure your quality gate, that it only fails if your code get's worse than it was before. But keeping it as "bad" as it was in the target branch would not fail the gate. Would that be an option? EDIT: But anyway it would be a good option to have a switch ;) |
No, that's not a option. For example if you have a MR with only configuration changes, then the test coverage is zero. So you would have to change the code coverage for new code to 0% at the quality gate to accept the the MR. 'Must' conditions in software development sounds good until you face the real world. That's why usually all quality solutions have the possibility to allow exceptions (@ignore at tests, //NOSONAR, /* NOFORMAT , mark as false positive in Sonar, ...). And I think the approval of the MR is a good person to decide if a MR should be merged even if the quality gate fails. |
I have reimplemented the change based on master if someone is interested ... |
I also face a problem that with enabled quality gate, for the interim period, I would like to have the external job created from SonarQube to do not fail the pipeline in MRs and it should be controlled from the job that triggers Sonar (e.g. with @bmaehr 1. Am I right that your changes in https://github.com/bmaehr/sonarqube-community-branch-plugin/commits/canFailPipeline cover that? |
@mc1arke Is there currently any way to disable failing the whole pipeline in GitLab (e.g. when waiting for quality gate is done within the job with If not, do you have any better idea how to achieve that? |
@szpak No, there isn't a way within the plugin. You're free to deploy your own copy of the plugin with alterations to the submission handling though. |
Thanks for your reply @mc1arke . Assuming it would be done in my "copy" of the plugin (a possibility to disable submitting the pipeline status update), were you open to accept that contribution back? |
@mc1arke Would you like to have that feature merged into your upstream version? If yes, what solution would be best for you? The one proposed by @bmaehr or something else? |
…ailed analysis Could be useful in the interim period, especially for the analysis using "-Dsonar.qualitygate.wait=true" with "allow_failure: true" in GitLab.
GitlabMergeRequestDecoratorTest migrated to JUnit Jupiter API
…gration to JUnit 5
Only properties starting with "sonar.analysis." are available from the analysis context: https://docs.sonarqube.org/latest/analysis/analysis-parameters/
Describe the Enhancement
Switch to turn off failing of pipeline
Additional context
If quality gate is not reached it is not possible to merge, which is to hard for us
The text was updated successfully, but these errors were encountered: