File tree Expand file tree Collapse file tree 6 files changed +15
-7
lines changed
src/main/java/io/tpd/quboo/sonarplugin/hooks Expand file tree Collapse file tree 6 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.1.0
4+
5+ * Added compatibility with Sonarqube > 8.0
6+
37## 1.0.6
48
59* Added new Issue fields to be exported to Quboo: ` type ` and ` tags ` . They will be used to assign new badges.
Original file line number Diff line number Diff line change 1- FROM sonarqube:7.9 -community
1+ FROM sonarqube:8.2 -community
22ADD ./target/quboo-sonar-plugin*.jar /opt/sonarqube/extensions/plugins/quboo-sonar-plugin.jar
Original file line number Diff line number Diff line change 1+ FROM sonarqube:7.9-community
2+ ADD ./target/quboo-sonar-plugin*.jar /opt/sonarqube/extensions/plugins/quboo-sonar-plugin.jar
Original file line number Diff line number Diff line change 3535
3636 <properties >
3737 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
38- <sonar .apiVersion>6.7.1 </sonar .apiVersion>
38+ <sonar .apiVersion>7.4 </sonar .apiVersion>
3939 <jdk .min.version>1.8</jdk .min.version>
4040 <sonar .sources>src/main/java</sonar .sources>
41- <jackson .version>2.10.0 </jackson .version>
41+ <jackson .version>2.10.3 </jackson .version>
4242 <sonar .exclusions>**/pojos/*.java</sonar .exclusions>
4343 </properties >
4444
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22mvn package
3- cp -v ./target/* .jar /usr/local/Cellar/sonarqube/7.7 /libexec/extensions/plugins
3+ cp -v ./target/* .jar /usr/local/Cellar/sonarqube/8.2.0.32929 /libexec/extensions/plugins
44sonar restart
Original file line number Diff line number Diff line change 1111import io .tpd .quboo .sonarplugin .settings .QubooProperties ;
1212import okhttp3 .*;
1313import org .sonar .api .ce .posttask .PostProjectAnalysisTask ;
14- import org .sonar .api .internal .google .common .annotations .VisibleForTesting ;
1514import org .sonar .api .platform .Server ;
1615import org .sonar .api .utils .log .Logger ;
1716import org .sonar .api .utils .log .Loggers ;
@@ -37,11 +36,14 @@ public QubooConnector(final Server server) {
3736 this .mapper = new ObjectMapper ();
3837 }
3938
40- @ VisibleForTesting
4139 void setHttp (final OkHttpClient http ) {
4240 this .http = http ;
4341 }
4442
43+ public String getDescription () {
44+ return "Send statistics to Quboo after an analysis" ;
45+ }
46+
4547 @ Override
4648 public void finished (ProjectAnalysis analysis ) {
4749 final String qubooKey = analysis .getScannerContext ().getProperties ().get (QubooProperties .ACCESS_KEY );
@@ -148,7 +150,7 @@ private Request.Builder addAuthorizationIfNeeded(final Request.Builder requestBu
148150 if (!isEmpty (token )) {
149151 final String headerValue = "Basic " + Base64 .getEncoder ().encodeToString ((token + ":" ).getBytes ());
150152 requestBuilder .header ("Authorization" , headerValue );
151- log .info ("Adding Authorization header to request with token ****{}" , token .substring (3 * token .length ()/ 4 ));
153+ log .info ("Adding Authorization header to request with token ****{}" , token .substring (3 * token .length () / 4 ));
152154 }
153155 return requestBuilder ;
154156 }
You can’t perform that action at this time.
0 commit comments