export detailed logs for each project 81/37581/2
authorJulien <zhang.jun3g@zte.com.cn>
Sun, 16 Jul 2017 14:09:26 +0000 (22:09 +0800)
committerJulien <zhang.jun3g@zte.com.cn>
Sun, 16 Jul 2017 15:40:44 +0000 (23:40 +0800)
1. mapping .reports mapped into docker
2. export ./reports/*

JIRA: RELENG-279

Change-Id: I4eef3b75589a9d8f36801931d1fd31b7e247c07a
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
jjb/ci_gate_security/anteater-security-audit.sh
jjb/ci_gate_security/opnfv-ci-gate-security.yml

index 9bd3cc3..35f9354 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/bash
 cd $WORKSPACE
+REPORTDIR='.reports'
+mkdir -p $REPORTDIR
 echo "Generating patchset file to list changed files"
 git diff HEAD^1 --name-only | sed "s#^#/home/opnfv/anteater/$PROJECT/#" > $WORKSPACE/patchset
 echo "Changed files are"
@@ -7,7 +9,7 @@ echo "--------------------------------------------------------"
 cat $WORKSPACE/patchset
 echo "--------------------------------------------------------"
 
-vols="-v $WORKSPACE:/home/opnfv/anteater/$PROJECT"
+vols="-v $WORKSPACE:/home/opnfv/anteater/$PROJECT -v $WORKSPACE/$REPORTDIR:/home/opnfv/anteater/$REPORTDIR"
 envs="-e PROJECT=$PROJECT"
 
 echo "Pulling releng-anteater docker image"
index d991573..55d629c 100644 (file)
     builders:
         - anteater-security-audit
         - report-security-audit-result-to-gerrit
+    publishers:
+      - archive-artifacts:
+          artifacts: ".reports/*"
+
 ########################
 # builder macros
 ########################