You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Harness Drone/CIE SonarQube Plugin with Quality Gate
2
2
3
-
The plugin of Harness Drone/CIE to integrate with SonarQube (previously called Sonar), which is an open source code quality management platform and check the report results for status OK.
3
+
This plugin is designed to run SonarQube scans and handle the results and convert it to JUnit Format. It's written in Go and check the report results for status OK.
- `token`: The token for authenticating with the SonarQube server.
109
+
- Example: `"token": "your-sonarqube-token"`
110
+
- `ver`: The version of the project.
111
+
- Example: `"ver": "1.0.0"`
112
+
- `branch`: The branch of the project.
113
+
- Example: `"branch": "master"`
114
+
- `timeout`: The timeout for the Sonar scanner.
115
+
- Example: `"timeout": "300"`
116
+
- `sources`: The paths for the source directories, separated by commas.
117
+
- Example: `"sources": "src"`
118
+
- `inclusions`: The files to be included in the analysis.
119
+
- Example: `"inclusions": "*.go, *.java"`
120
+
- `exclusions`: The files to be excluded from the analysis.
121
+
- Example: `"exclusions": "*.test.go"`
122
+
- `level`: The logging level.
123
+
- Example: `"level": "INFO"`
124
+
- `showProfiling`: Enable profiling during analysis.
125
+
- Example: `"showProfiling": "true"`
126
+
- `branchAnalysis`: Execute branch analysis.
127
+
- Example: `"branchAnalysis": "true"`
128
+
- `usingProperties`: Use `sonar-project.properties`.
129
+
- Example: `"usingProperties": "true"`
130
+
- `binaries`: Java binaries.
131
+
- Example: `"binaries": "/path/to/binaries"`
132
+
- `quality`: Quality Gate.
133
+
- Example: `"quality": "OK"`
134
+
- `quality_gate_enabled`: Stop pipeline if Sonar quality gate conditions are not met.
135
+
- Example: `"quality_gate_enabled": "true"`
136
+
- `qualitygate_timeout`: Number in seconds for timeout.
137
+
- Example: `"qualitygate_timeout": "300"`
138
+
- `artifact_file`: Artifact file location that will be generated by the plugin. This file will include information of Docker images that are uploaded by the plugin.
139
+
- Example: `"artifact_file": "artifact.json"`
140
+
- `output-file`: Output file location that will be generated by the plugin. This file will include information that is exported by the plugin.
0 commit comments