From: Chris Jaekl Date: Sun, 1 Nov 2015 01:56:39 +0000 (+0900) Subject: analyze.sh: script to invoke CFB from Jenkins. X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=4f1e35c55d5d962215d8380d9cdebee0b4d1dd3b;p=cfb.git analyze.sh: script to invoke CFB from Jenkins. Note that some reworking will be needed to make this generally applicable. --- diff --git a/analyze.sh b/analyze.sh new file mode 100755 index 0000000..2530a6f --- /dev/null +++ b/analyze.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +JOB_NAME=${1} +BUILD_NUMBER=${2} +OUT_FILE=${3} + +BUILD_WORKSPACE=${SCRIPT_DIR}/../jobs/${JOB_NAME}/workspace + +export FINDBUGS_HOME=${SCRIPT_DIR}/../findbugs-3.0.1 +. ./setcp.sh + +rm cfb.fbp +cat >cfb.fbp < + ${BUILD_WORKSPACE}/bin + ${BUILD_WORKSPACE}/src + +EOF + +cat cfb.fbp +./go.sh -c config.properties -d cfb -u cfb -p cfb -f cfb.fbp -n jenkins_${JOB_NAME}_${BUILD_NUMBER} -o ${OUT_FILE}