Giter Site home page Giter Site logo

codeferret / brakeman-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenkinsci/brakeman-plugin

1.0 0.0 0.0 3.71 MB

A Brakeman plugin for the Hudson/Jenkins continuous integration tool

Home Page: brakemanscanner.org

License: MIT License

Java 100.00%

brakeman-plugin's Introduction

A Hudson/Jenkins plugin to run Brakeman against Ruby on Rails applications and track the results.

Requirements

This plugin requires the Static Analysis Utilities Plugin (which is also called "analysis-core") version >= 1.16. The plugin is available in Jenkins under Manage Jenkins -> Manage Plugins -> Available -> Static Analysis Utilities.

You will also need to have Ruby and RubyGems installed on the Jenkins/Hudson server in order to run Brakeman.

Installing the Plugin

Through Jenkins

Navigate to Manage Jenkins -> Manage Plugins -> Available and look for "Brakeman". Click the checkbox and then the "Install" button at the bottom of the page.

Manually

Download brakeman.hpi from here.

Inside Jenkins, go to Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin.

Upload brakeman.hpi.

Usage

Add Shell Command

Add/append a shell command to your job configuration like (this is just an example):

gem install brakeman --no-rdoc --no-ri &&
brakeman -o brakeman-output.tabs

Or, if rvm is available, you can use something like:

bash -l -c 'rvm use 1.8.7 &&
rvm gemset create brakeman &&
rvm gemset use brakeman &&
gem install brakeman --no-rdoc --no-ri &&
brakeman -o brakeman-output.tabs'

The version of Ruby may vary according to your setup.

Publish Warnings

Click 'Publish Brakeman warnings' to enable the Brakeman.

Some adjustment may need to be done regarding paths. Brakeman needs to be run at the root of the application or supplied with the path. The output file specified on the commandline needs to be synched with the output file specified as a plugin option.

Testing without Existing Jenkins Server

Requires Maven2. You will likely need to modify your environment as documented here.

After cloning the source, run this in the main directory:

mvn hpi:run

This starts up a copy of Jenkins with the Brakeman plugin installed. This is not necessary if you just want to install the plugin.

Building a New Plugin Package

This is to generate a new brakeman.hpi.

Requires Maven2. You will likely need to modify your environment as documented here.

After cloning the source, run this in the main directory:

mvn install

This builds a copy of the plugin in ./target/brakeman.hpi

brakeman-plugin's People

Contributors

presidentbeef avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.