Skip to content

install sonar plugin

travis edited this page Dec 11, 2019 · 1 revision

Install SonarQube Plugin

Introduction

SonarQube can extends its behaviour by adding plugins. Some on them can be installed by using the SonarQube Marketplace, others can be installed by copying the .jar into the SonarQube plugins folder.

Overview

This template will help you to install SonarQube plugins by copying the .jar into the SonarQube plugins folder. As you do not have access to the Production Line volumes, it will help you when you want to install a plugin that is not installed in the SonarQube Marketplace.

It will:

  • Download the .jar file from a provided URL.

  • Copy the .jar file to the plugins folder.

  • Restart the SonarQube server in order to enable the plugin.

ℹ️
this template only works in a Production Line instance.

Template

This template will be automatically created in your jenkins after executing the Initialize_Instance template inside the UTILS folder with the name Install_SonarQube_Plugin.

For manual creation see: How to add a Template

This template needs the devonfw Production Line Shared Lib

Parameters

The only parameter required is the plugin download URL.

Execution

  1. Press the Build with Parameters button

  2. Insert plugin the download url. Example: https://github.com/dependency-check/dependency-check-sonar-plugin/releases/download/1.2.6/sonar-dependency-check-plugin-1.2.6.jar

  3. Press the Build button.

  4. Wait until the pipeline ends.

build install sonar plugin
build install sonar plugin2

After the execution, when the SonarQube is restarted, you can check that your plugin is installed visiting the Marketplace.

sonar plugin