Move artifact storage and cleanup to their own macros 47/847/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 17 Jun 2015 10:25:21 +0000 (12:25 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 17 Jun 2015 15:35:51 +0000 (17:35 +0200)
JIRA: FUNCTEST-9, FUNCTEST-12

Change-Id: Ibf1f959ca99a75bbbffd51ee36c9625b5f82cf57
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/functest/functest.yml

index 9412bc2..1d4abb9 100644 (file)
 
     builders:
         - 'functest-all'
+        - 'functest-store-results'
+        - 'functest-cleanup'
 
 - job-template:
     name: 'functest-daily-{stream}'
 
             # save tempest.conf for further troubleshooting
             cp $HOME/.rally/tempest/for-deployment-*/tempest.conf $HOME/functest/results
-            
-            # push results to artifact
+
+- builder:
+    name: functest-store-results
+    builders:
+        - shell:
             !include-raw res-build.sh
 
+- builder:
+    name: functest-cleanup
+    builders:
+        - shell:
+        - shell: |
+            #!/bin/bash
+            set +e
+
             # cleanup
             python $WORKSPACE/testcases/config_functest.py --debug --force $WORKSPACE/ clean