forked from OpenShiftDemos/sonarqube-openshift-docker
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from WadeBarnes/master
#6 - Update documentation
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Upgrading with Bundled Plugins | ||
|
||
*The following "trick" is a workaround for [Missing plugins when upgrading Sonarqube Versions](https://github.com/BCDevOps/sonarqube/issues/6)* | ||
|
||
When upgrading Sonarqube to a newer image, such as going from `bcgovimages/sonarqube:6.7.1` to `bcgovimages/sonarqube:6.7.5` which has a couple of handy plugins bundled with it, you may find the plugins don't get installed/registered. Sonarqube does not seem to install bundled plugins when upgrading image versions. | ||
|
||
Luckily the plugins are still included in the image. So you can simply copy them into the plugins directory. | ||
|
||
1. Open a terminal window to your Sonarqube instance. | ||
1. Run the following commands to install the plugins (for example); | ||
``` | ||
cp $SONARQUBE_HOME/lib/bundled-plugins/sonar-zap-plugin-1.1.2.jar $SONARQUBE_HOME/extensions/plugins/ | ||
cp $SONARQUBE_HOME/lib/bundled-plugins/qualinsight-sonarqube-badges-3.0.1.jar $SONARQUBE_HOME/extensions/plugins/ | ||
``` | ||
1. Login to your Sonarqube instance as `admin` | ||
1. On the **Administration** > **System** screen click **Restart Server** | ||
1. Once the server restarts verify the plugins were installed by heading over to the **Administration** > **Marketplace** screen and search for the plugins. They should be marked as installed. |