Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ci/jenkins/bin/clang-analyzer.sh b/ci/jenkins/bin/clang-analyzer.sh
- index 81e6ba4d8..d5f4aac5f 100755
- --- a/ci/jenkins/bin/clang-analyzer.sh
- +++ b/ci/jenkins/bin/clang-analyzer.sh
- @@ -25,6 +25,7 @@
- LLVM_BASE=${LLVM:-/opt/llvm}
- NPROCS=${NPROCS:-$(getconf _NPROCESSORS_ONLN)}
- NOCLEAN=${NOCLEAN:-}
- +OUTPUT_BASE=${OUTPUT_BASE:-/home/jenkins/clang-analyzer}
- # Options
- options="--status-bugs --keep-empty"
- @@ -43,12 +44,16 @@ checkers="-enable-checker alpha.unix.cstring.BufferOverlap \
- test -z "${ATS_MAKE}" && ATS_MAKE="make"
- test ! -z "${WORKSPACE}" && cd "${WORKSPACE}/src"
- -# Check to see if this is a Github PR build (so not a github branch per-se)
- -test "${JOB_NAME#*-github}" != "${JOB_NAME}" && ATS_BRANCH="github"
- -
- # Where to store the results, special case for the CI
- output="/tmp"
- -test -w "/home/jenkins/clang-analyzer/${ATS_BRANCH}" && output="/home/jenkins/clang-analyzer/${ATS_BRANCH}"
- +test -w "${OUTPUT_BASE}/${ATS_BRANCH}" && output="${OUTPUT_BASE}/${ATS_BRANCH}"
- +
- +# Check to see if this is a Github PR build (so not a github branch per-se)
- +if [ "${JOB_NAME#*-github}" != "${JOB_NAME}" ]; then
- + output="${OUTPUT_BASE}/${ATS_BRANCH}/${ghprbPullId}"
- + [ ! -d "${OUTPUT_BASE}/${ATS_BRANCH}/${ghprbPullId}"] && mkdir "${OUTPUT_BASE}/${ATS_BRANCH}/${ghprbPullId}"
- + ATS_BRANCH="github"
- +fi
- # Tell scan-build to use clang as the underlying compiler to actually build
- # source. If you don't do this, it will default to GCC.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement