3 echo "Generating patchset file to list changed files"
4 git diff HEAD^1 --name-only | sed "s#^#/home/opnfv/anteater/$PROJECT/#" > $WORKSPACE/patchset
5 echo "Changed files are"
6 echo "--------------------------------------------------------"
7 cat $WORKSPACE/patchset
8 echo "--------------------------------------------------------"
10 vols="-v $WORKSPACE:/home/opnfv/anteater/$PROJECT"
11 envs="-e PROJECT=$PROJECT"
13 echo "Pulling releng-anteater docker image"
14 echo "--------------------------------------------------------"
15 docker pull opnfv/releng-anteater
16 echo "--------------------------------------------------------"
18 cmd="docker run -i $envs $vols --rm opnfv/releng-anteater \
19 /home/opnfv/venv/bin/anteater --project $PROJECT --patchset /home/opnfv/anteater/$PROJECT/patchset"
20 echo "Running docker container"
22 $cmd > $WORKSPACE/securityaudit.log 2>&1
24 echo "--------------------------------------------------------"
25 echo "Docker container exited with code: $exit_code"
26 echo "--------------------------------------------------------"