Skip to content

fortify-jenkins/fortify-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Plugins Build Status

Fortify Jenkins plugin

This is the official Jenkins plugin for the Fortify Static Code Analyzer (SCA) and Fortify Software Security Center (SSC).

Documentation

You can find plugin documentation here: https://www.microfocus.com/documentation/fortify-jenkins-plugin/1910/Jenkins_Plugin_Help_19.1.0/index.htm

For more information about Fortify SCA please visit https://www.microfocus.com/products/static-code-analysis-sast

For more information about Fortify SSC please visit https://www.microfocus.com/products/software-security-assurance-sdlc

Building and debugging

To build the plugin and connect your IDE for a remote debug session, you can use the following script:

set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
mvn clean
mvn package -Dssc.url=http://127.0.0.1:8180/ssc/
mvn -Djetty.port=8181 -DskipTests=true hpi:run

Usage notes

You are required to obtain Fortify SSC authentication token to use the server related functionality of the plugin (which includes build failure conditions and getting all vulnerability results in Jenkins).

  • SSC authentication token (either JenkinsToken or CIToken). Token creation command:
    $ fortifyclient token -gettoken JenkinsToken -url http://localhost:8180/ssc -user admin
    
  • Tests. Upon building process junit tests from the plug-in use connection to SSC. To override default SSC location (localhost:8080) you can specify optional SSC URL parameter 'ssc.url'. For example:
    mvn package -Dssc.url=http://127.0.0.1[:port]/ssc/
    
    See other default parameters to override in ssc.properties file.

The mvn command line arguments are passed to Java as MAVEN_CMD_LINE_ARGS, test cases will read this environment variable and set different url and tokens during testing. Corresponding test cases will be skipped if the SSC is not started.

About

Fortify Jenkins plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 86.8%
  • HTML 9.6%
  • JavaScript 3.5%
  • CSS 0.1%