From 4f1e35c55d5d962215d8380d9cdebee0b4d1dd3b Mon Sep 17 00:00:00 2001 From: Chris Jaekl Date: Sun, 1 Nov 2015 10:56:39 +0900 Subject: [PATCH] analyze.sh: script to invoke CFB from Jenkins. Note that some reworking will be needed to make this generally applicable. --- analyze.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 analyze.sh 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} -- 2.39.2