Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ function finish ()
#Move statedumps to be archived
mv /var/run/gluster/*dump* /var/log/glusterfs/ || true
tar -czf $WORKSPACE/glusterfs-logs.tgz /var/log/glusterfs /var/log/messages* || true
scp -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i $LOG_KEY glusterfs-logs.tgz "[email protected]:/var/www/glusterfs-logs/$JOB_NAME-logs-$BUILD_ID.tgz" || true;
echo "Logs stored in https://ci-logs.gluster.org/$JOB_NAME-logs-$BUILD_ID.tgz";
if [[ ${H} == *"aws"* ]]; then
scp -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i $LOG_KEY glusterfs-logs.tgz "[email protected]:/var/www/glusterfs-logs/$JOB_NAME-smoke-logs-$BUILD_ID.tgz" || true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's still uploading to http.int, this wouldn't wrok.

echo "Logs stored in https://logs.aws.gluster.org/$JOB_NAME-smoke-logs-$BUILD_ID.tgz"
else
scp -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i $LOG_KEY glusterfs-logs.tgz "[email protected]:/var/www/glusterfs-logs/$JOB_NAME-smoke-logs-$BUILD_ID.tgz" || true;
echo "Logs stored in https://ci-logs.gluster.org/$JOB_NAME-smoke-logs-$BUILD_ID.tgz";
cleanup;
kill %1;
}
Expand Down