summaryrefslogtreecommitdiff
path: root/evergreen/blackduck_hub.sh
blob: f7edf2d486ea50895b7a771bfbb527e5feb6f6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

cd src

set -o errexit
set -o verbose

# activate the virtualenv if it has been set up
activate_venv

additional_args=
if [ "$branch_name" != "master" ]; then
  additional_args="--vulnerabilities_only"
fi

python buildscripts/blackduck_hub.py -v scan_and_report --build_logger=mci.buildlogger --build_logger_task_id=${task_id} --report_file=report.json $additional_args