We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e182069 commit cc83d7fCopy full SHA for cc83d7f
bin/codedeploy/ValidateService.sh
@@ -15,6 +15,8 @@ ${DEBUG:-false} && set -vx
15
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
16
17
GAUNTLT_RESULTS=/app/build/gauntlt-results.html
18
+# TODO: save this to S3 instead
19
+GAUNTLT_RESULTS_SAVE="/home/centos/$DEPLOYMENT_ID-gauntlt-results.html"
20
21
check_every() {
22
local delay=${1:-}
@@ -34,4 +36,9 @@ echo "Scanning with openscap and gauntlt"
34
36
mkdir -p /app/build
35
37
cat < /dev/null > "$GAUNTLT_RESULTS"
38
chown centos:centos "$GAUNTLT_RESULTS"
39
+set +e
40
sudo -u centos HOME=/home/centos /app/bin/ansible.sh scan-openscap.yml scan-gauntlt.yml
41
+RETCODE=$?
42
+cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
43
+set -e
44
+exit "$RETCODE"
0 commit comments