/
Dexter Jenkins plugin

Dexter Jenkins plugin

Dexter provides plugin for Jenkins to perform static analysis inside Jenkins CI.

Contents:

  • 1. Installation
  • 2. Configuration
  • 3. Results of analysis

You need to download  dexter-jenkins folder or dexter-jenkins.hpi file to install Dexter plugin.

1. Installation

If you'd like to install dexter plugin to Jenkins you have to follow the next instructions.

Requirements:

  • OS : Windows 7+, LINUX
  • Working Jenkins instance or Maven to install new empty Jenkins instance
  • Dexter-server, Dexter-CLI downloaded folders
  • Created user and access dexter-db.sql configurated

      If you don't have any working Jenkins instance you can run your own from dexter-jenkins folder

     Dexter plugin installation to Jenkins instance

  • Open current working Jenkins instance

  • Go to Global configurations → Manage Plugins
  • Choose Advanced option
  • There you can find Upload Plugin field, choose deter-jenkins.hpi file on your computer and press Upload
  • Now you can see Dexter plugin at list of installed plugins

     Jenkins Installation with Dexter plugin at localhost

  • Run cmd or terminal and go to dexter-jenkins folder

  • Type mvn install and Building Dexter will start
  • Wait untill you will see a success message and type mvn hpi:run
  • Jenkins instance with installed Dexter plugin is available at http://localhost:8080/jenkins/ .


2. Configuration

  • Create a new item of free-style project and go to Project configurations.
  • Click on add post-build action and find Dexter Static Analysis
  • Now you can see configurations for Dexter plugin.
  • Enter information and press save
  • Information which will be saved into dexter_cfg.json should be provided with \\ between path

3. Results of analysis

  • Click on Build Now and wait untill all build actions will be finished, after them post-build actions will be started
  • When build is finished press on build number too see build information
  • Press to Static analysis results too see analysis output
  • Results will be also available at Dexter web site

Related content