File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 11# Sonar Scoverage Plugin source code #
22
33Useful bash script for plugin development to stop Sonar server, build plugin, copy it to Sonar plugin
4- directory and start Sonar server again:
5-
6- <SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh stop
7-
8- mvn install
9- cp ./target/sonar-scoverage-plugin-1.0-SNAPSHOT.jar <SONAR_INSTALL_DIR>/extensions/plugins/
10-
11- <SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh start
4+ directory and start Sonar server again is in the ` dev.sh ` file.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ SONAR_HOME=~ /bin/sonarqube-4.2
4+ PLUGIN_VERSION=4.2.0
5+
6+ mvn install
7+
8+ PLUGIN_FILE=" ./target/sonar-scoverage-plugin-$PLUGIN_VERSION .jar"
9+ if [ ! -f $PLUGIN_FILE ]; then
10+ echo " Plugin jar not found! [$PLUGIN_FILE ]"
11+ exit 1
12+ fi
13+
14+ $SONAR_HOME /bin/linux-x86-64/sonar.sh stop
15+
16+ rm $SONAR_HOME /extensions/plugins/sonar-scoverage-plugin-*
17+ cp $PLUGIN_FILE $SONAR_HOME /extensions/plugins/sonar-scoverage-plugin-$PLUGIN_VERSION .jar
18+
19+ $SONAR_HOME /bin/linux-x86-64/sonar.sh start
You can’t perform that action at this time.
0 commit comments