Skip to content

Commit

Permalink
Merge pull request #7 from WadeBarnes/master
Browse files Browse the repository at this point in the history
#6 - Update documentation
  • Loading branch information
WadeBarnes authored Nov 16, 2018
2 parents 83c766b + 65da2ed commit 445cca9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ For SonarQube versions <7.1 you will need to use the [SVG Badges](https://github
# Tips and Tricks

- [Troubleshooting Jenkins Slave Startup Issues](./docs/troubleshooting-jenkins-slave-startup-issues.md)
- [Upgrading with Bundled Plugins](./docs/upgrading-with-bundled-plugins.md)

# Getting Help or Reporting an Issue
To report bugs/issues/feature requests, please file an [issue](../../issues).
Expand Down
17 changes: 17 additions & 0 deletions docs/upgrading-with-bundled-plugins.md
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.

0 comments on commit 445cca9

Please sign in to comment.