Change-Id: Id1340090fbf410f9eda5e115f554fee778d26b90
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
echo "Executing command inside container"
echo "$cmd"
echo "--------------------------------------------------------"
-docker exec $container_id $cmd | tee securityaudit.log
+docker exec $container_id $cmd > $WORKSPACE/securityaudit.log 2>&1
exit_code=$?
echo "--------------------------------------------------------"
echo "Stopping docker container with ID $container_id"
docker stop $container_id
exit 0
#exit $exit_code
-
#!/bin/bash
set -o errexit
set -o pipefail
- set -o xtrace
export PATH=$PATH:/usr/local/bin/
# If no violations were found, no lint log will exist.