Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add the correct log server for smoke test on AWS builder #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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