summaryrefslogtreecommitdiffstats
path: root/jjb/compass4nfv
diff options
context:
space:
mode:
authorm00133142 <meimei@huawei.com>2015-09-22 11:31:51 +0800
committerm00133142 <meimei@huawei.com>2015-09-22 11:31:51 +0800
commit1df2d24fa392d2310d4c13a1b2fed7bc2e4be508 (patch)
tree9cdfc6a8ab63ef89c71c64d18b7c02c348edcd61 /jjb/compass4nfv
parente0c0a906247ac00820d3d68f0d0743f6c8c30efb (diff)
upload ansible.log to jenkins after deployment
JIRA: COMPASS-70 Change-Id: I333879e8a7e200f01623ae77e09e113a0c4c60bd Signed-off-by: m00133142 <meimei@huawei.com>
Diffstat (limited to 'jjb/compass4nfv')
-rw-r--r--jjb/compass4nfv/compass4nfv.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/jjb/compass4nfv/compass4nfv.yml b/jjb/compass4nfv/compass4nfv.yml
index cfa796679..53e880c80 100644
--- a/jjb/compass4nfv/compass4nfv.yml
+++ b/jjb/compass4nfv/compass4nfv.yml
@@ -154,6 +154,12 @@
builders:
- 'compass-build'
- 'compass-deploy-virtual-flavor'
+ - 'compass-backup-logs'
+ publishers:
+ - archive:
+ artifacts: 'ansible.log'
+ allow-empty: 'true'
+ fingerprint: true
- job-template:
name: 'compass-merge'
@@ -311,6 +317,12 @@
- 'compass-ci-preclean-workspace'
- 'compass-download-artifact'
- 'compass-deploy-virtual-flavor'
+ - 'compass-backup-logs'
+ publishers:
+ - archive:
+ artifacts: 'ansible.log'
+ allow-empty: 'true'
+ fingerprint: true
########################
# parameter macros
@@ -347,6 +359,9 @@
default: "root@192.168.127.11:~/xh/work/build/work"
description: "Artifact Repository"
+ - string:
+ name: installer_ip
+ default: "10.1.0.12"
########################
# builder macros
@@ -510,3 +525,9 @@
sudo rm $WORKSPACE -rf
git clone $GIT_BASE $WORKSPACE
+- builder:
+ name: 'compass-backup-logs'
+ builders:
+ - shell: |
+ ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+ sshpass -p root scp 2>/dev/null $ssh_options root@${installer_ip}:/var/ansible/run/openstack_juno-opnfv2/ansible.log ./ &> /dev/null