Skip to content

Instantly share code, notes, and snippets.

@SergioEstevao
SergioEstevao / OCLint Jenkins
Created November 21, 2013 22:44
A script for running OCLint in Jenkins and create PMD reports
#import path
export PATH=${PATH}:/usr/local/bin
#import what we have in bash_profile
source ~/.bash_profile
#check for oclint
hash oclint &> /dev/null
if [ $? -eq 1 ]; then
echo >&2 "oclint not found, analyzing stopped"
exit 1
fi