sahara-ci-config/slave-scripts/publish-logs.sh
Evgeny Sikachev 3e21857849 Added publisher script and job
Added job for daily publishing logs from slaves

Change-Id: Ie2733961928bb768003dd64cb30a5eb18c3b2302
2016-06-27 16:12:34 +03:00

8 lines
289 B
Bash
Executable File

#!/bin/bash -e
dir_name=$(date '+%d-%b-%Y')
lab=$(echo $JOB_NAME | awk -F '-' '{ print $4 }')
echo "Moving logs to the https://sahara-ci-reports.mirantis.com"
rsync -e "ssh -i /home/jenkins/.ssh/rsync_key" -avz /opt/stack/logs/ ubuntu@172.18.180.78:/var/www/html/devstack/$lab/$dir_name