Report anteater results to gerrit. 61/36061/1
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 14 Jun 2017 01:04:41 +0000 (09:04 +0800)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 14 Jun 2017 01:04:41 +0000 (09:04 +0800)
used tee to create audit log

Change-Id: I6941e142064cf7c9b4586660be69df2a02807af3
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/ci_gate_security/anteater-security-audit.sh
jjb/ci_gate_security/opnfv-ci-gate-security.yml

index 4d454f2..9192b1b 100644 (file)
@@ -25,7 +25,7 @@ cmd="anteater --project $PROJECT --patchset /home/opnfv/anteater/$PROJECT/patchs
 echo "Executing command inside container"
 echo "$cmd"
 echo "--------------------------------------------------------"
-docker exec $container_id $cmd
+docker exec $container_id $cmd | tee securityaudit.log
 exit_code=$?
 echo "--------------------------------------------------------"
 echo "Stopping docker container with ID $container_id"
index 1e550a3..84e9dd1 100644 (file)
@@ -70,7 +70,7 @@
 
     builders:
         - anteater-security-audit
-#        - report-security-audit-result-to-gerrit
+        - report-security-audit-result-to-gerrit
 ########################
 # builder macros
 ########################