Fortify Static


Fortify Unplugged YouTube Channel

SSC - Software Security Center


SCA - Static Code Analyzer


Setting up JAVA user environment variables

Set the following user environment variables (== environment variables of type user variables)

• JAVA_HOME : C:\Program Files\Java\jdk1.8.0_112
• CLASSPATH : .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
• PATH : your-unique-entries;%JAVA_HOME%\bin

NOTE: make sure that the longish your-unique-entries does not contain any other references to another Java installation folder.

Build Jenkins Plugin

Steps on how to create the SCA Jenkins plugin 19.1.0 from github

  1. Download Fortify Jenkins plugin zip file from

  2. setup environment

  3. install maven and make it accessible via PATH system environment variable (mvn -version)
  4. install JDK and make accessible via PATH system environment variable (java -version or javac -version)
set JAVA_HOME=path\JDK_path
set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 (as per the github setting)
set PATH=path\maven\bin;path\JDK\bin;%path%
  1. download certificates from (download/export cert using the lock icon in the browser's URL bar) or you will get the following error. eg mvn clean Listening for transport dt_socket at address: 5005 [INFO] Scanning for projects... Downloading: Downloading: Downloading: [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.jenkins-ci.plugins:fortify:19.1.30-SNAPSHOT: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:3.4 from/to ( PKIX path building failed: unable to find valid certification path to requested target and 'parent.relativePath' points at wrong local POM @ line 19, column 13

  2. add cert to JDK's keystore eg C:_Java\jdk1.8.0_191\bin\keytool.exe -importcert -trustcacerts -noprompt -storepass changeit -keystore C:_Java\jdk1.8.0_191\jre\lib\security\cacerts -file ..\repo_jenkins-ci_org.crt -alias Certificate was added to keystore

  3. download and place it under the following directory eg C:\Users\.m2\repository\com\fortify\ssc-restapi-client\2.0

  4. run the following

cd fortify-plugin-master
mvn clean
mvn package (this will create a target subfolder where fortify.hpi will be created)
  1. install 19.1.0 Fortify Jenkins plugin

Pipeline SCA Jenkins plugin example

pipeline {
  agent any
    environment {
    stages {
        stage('fortify clean') {
            echo 'Cleaning'
            fortifyClean buildID: 'EightBall'
        stage('fortify Translate') {
        echo 'Translating'
        fortifyTranslate buildID: 'EightBall',
        projectScanType: fortifyJava(javaSrcFiles: 'C:\\_FORTIFY\\Fortify_SCA_and_Apps_19.1.0\\Samples\\basic\\eightball\\', javaVersion: '1.8')
        stage('Deploy') {
        echo 'Scanning'
        fortifyScan buildID: 'EightBall', resultsFile: 'EightBall.fpr'

Install Maven Plugin

In the /plugins/maven/ directory extract the maven-plugin-srv file. Open a command prompt or terminal window. Browse to the /plugins/mavin/maven-plugin-src directory and execute the following command as mentioned in the README:

mvn clean install

After installing the plugin there are three commands that need to be executed your maven project directory (where the pom.xml file is located) - clean, translate, scan.

  1. mvn clean
  2. mvn
  3. mvn
  4. mvn - the switches are optional but recommended

After executing the above, you will have an fpr file created in the target/fortify directory

macOS Maven

  • Local Repository: /Users//.m2/repository