1
0
mirror of https://github.com/mc1arke/sonarqube-community-branch-plugin.git synced 2024-11-28 08:58:55 +02:00
Commit Graph

20 Commits

Author SHA1 Message Date
Michael Clarke
7cf8e36a68
Update version numbers and configuration guidance
Adds the new releases into the version numbers tables, and removes configuration guidance that is no longer possible under Sonarqube 8.1.
2020-07-16 23:28:17 +01:00
Marvin Wichmann
7a5ae26fbc Adds support for Bitbucket Cloud Code Insights
This commit provides support for the newly created bitbucket cloud code insights
API endpoints. The implementation has been done under the consideration that in
newer versions no dedicated ALM support for bitbucket cloud exists, thus this
implementation is minimal invasive.

One thing to note here:

* For local testing the link on CloudCreateReportRequest has to be set manually to a non localhost URL since
bitbuckets API doesn't support it.
2020-07-16 22:30:36 +01:00
CrazyMax
b979020b0d
Switch to GitHub Actions for CI Build
This change migrates from using Travis CI for performing check builds, to using Github actions for both check and release builds.

To allow this, three jobs have been introduced:
* Snapshot - performs the Gradle builds and publishes the snapshot JAR as an artifact against the check execution;
* Release - executes the release plugin in Gradle whenever a new tag is detected in Git, and creates a new draft release entry on the release page with the release artifact attached;
* Sonarqube - executes Sonarqube against any commit, submitting analysis details to Sonarcloud with the relevant branch, tag, or Pull Request details to allow Sonarcloud to decorate any findings. Note that this requires the `SONAR_TOKEN`, `SONAR_ORG_KEY`, and `SONAR_PROJECT_KEY` secrets to have been set against the repository in Github.
2020-06-07 10:19:03 +01:00
Michael Clarke
03b7cc8df6
Update latest release version 2020-05-31 22:20:24 +01:00
4n4n4s
2bf096a538 * Update documentation, reorder items on documentation 2020-05-30 11:40:02 +01:00
Denis Belyatsky
f09f72c6fe
#130: Allow administrators to define pull request icons source URL
Some ALMs (such as Github) proxy images in Pull Request decoration and therefore need direct access to the images. If the Sonarqube server isn't internet facing, the ALM will not be able to retrieve the images, and they therefore wont be visible on the Pull Request. This change restores the property for allowing Sonarqube administrators to define the URL for retrieving images, with the images defaulting to loading from the Sonarqube if the property is not set/overridden.
2020-05-17 22:12:42 +01:00
Michael Clarke
0ccc0cdff9
Update README with latest release information 2020-02-24 22:30:18 +00:00
Vincent Privat
7fb93e2e27 Fix #80 - Serve PR decoration images as static resources
Removes the com.github.mc1arke.sonarqube.plugin.branch.image-url-base property and use SonarQube static resources system instead.
2020-02-17 12:40:31 +00:00
Markus Heberling
9a12d6d57e
Add support for decorating merge requests on Gitlab
Uses Gitlab's rest API to create conversations/threads on a merge request containing annotations for each issue discovered by SonarQube, and provides a message on the merge request containing the scan summary.
2020-01-08 20:00:50 +00:00
4n4n4s
7a582ea0e0
Add support for decoration pull requests on Bitbucket
Use Bitbucket REST interfaces to apply comments to Pull Requests. Where possible, any existing comments are removed prior to adding comments to prevent any duplication, and properties have been added to control whether commenting and clean-up of comments is enabled.
2020-01-06 19:01:15 +00:00
Michael Clarke
b213d675de
Add support for decorating pull requests on Github
Uses the Github rest APIs to perform application authentication, and the GraphQL APIs to create a 'Check Run' providing the overall summary of the scan, and individual annotations of issues within each file. No attempt is made to remove old runs/annotations given Github seems to manage this when a new run is generated by the same application. The configuration of Sonarqube to allow this decoration aim to match those provided in the documentation for SonarQube 8.0.
2020-01-06 18:53:39 +00:00
Michael Clarke
d6a420d043
Update version table with latest release number 2019-11-19 20:45:43 +00:00
Michael Clarke
d733e2713d #38: Add support for SonarQube 8.0
Replaces references to the removed `ScannerUtils` class with Java's `URLEncoder`, and adds implementations of new methods introduced into SonarQube 8.0's interfaces. Since SonarQube 8.0 also changed `ScannerWsClient` from a class to an interface, the `ScannerWsClient` is now invoked through reflection in `ScannerWsClientWrapper` to prevent a `java.lang.IncompatibleClassChangeError` being thrown during invocation.

On top of this, SonarQube Compute Engine now contains a Java Security Manager that blocks access to retrieving `ClassLoader`s, so prevents the work-around used to access the branch API classes required for this plugin to execute. Moving the loading of the impacted classes into a `CoreExtension` and bypassing the class-loading manipulation for these classes overcomes this problem. This will require users of this plugin to install the plugin to both the plugins directory and the core platform's `lib/common` directory (or symlink the files) given plugin classes are only searched for from the plugins directory, and extensions are only loaded from the `common` directory.
2019-11-19 19:49:30 +00:00
Michael Clarke
3eba6723e4 Enable CI build in Travis
As the plugin is currently released using Java 8, OpenJDK 8 is being used until the point that only SonarQube 8 is supported. OpenJDK 11 is being used as a second JVM to ensure correct function against the the main-stream build of SonarQube.
2019-10-15 09:27:27 +01:00
Michael Clarke
064a24f090
Add README note making it clear this is not an official SonarQube plugin 2019-08-08 19:49:54 +01:00
Michael Clarke
a2507a1115
Update version table with latest release number 2019-07-01 21:18:26 +01:00
Guilhem Bonnefille
6f5e3b9ccc Add a link to the official documentation 2019-06-27 08:27:07 +01:00
Michael Clarke
8366826517 #19: Add support for SonarQube 7.8 APIs
SonarQube 7.8 contains changes to the APIs required for managing branches, with new methods having been introduced, and the existing `getMergeBranchUUid` method signature in `org.sonar.ce.tasj.projectanalysis.Branch` modified in a non-backwards-compatible way. Due to the incompatible changes, the supported SonarQube API version has been bumped from 7.4 to 7.8 and any methods that only existed to support older SonarQube versions have been removed. The 7.8 release of SonarQube does not currently have a sonar-plugin-api dependency released with it, so the SonarQube 7.7 dependency for the plugin-api component is being used in its place.
2019-06-25 18:05:23 +01:00
Patrick Alessi
d68f928ff5 Include link to release jar in the readme. (#14)
Include a link to the release page in the README
2019-06-12 22:13:09 +01:00
Michael Clarke
e35783041f Initial Commit 2019-03-14 19:06:25 +00:00