Skip to content

Commit

Permalink
Merge pull request cockroachdb#14229 from jordanlewis/jepsen-artifact…
Browse files Browse the repository at this point in the history
…s-compress

build: jepsen log archiver must follow symlinks
  • Loading branch information
jordanlewis authored Mar 17, 2017
2 parents 587d06c + d3c1fb7 commit c1c55b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/teamcity-jepsen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ for test in "${tests[@]}"; do
# Test failed: grab everything.
echo "Test failed. Grabbing all logs..."
archive_path="jepsen/cockroachdb/store/failure-logs.tgz"
ssh -o "StrictHostKeyChecking no" -i "$HOME/.ssh/${KEY_NAME}" "ubuntu@${controller}" "tar -czf ${archive_path} jepsen/cockroachdb/store/latest"
# -h causes tar to follow symlinks; needed by the `latest` symlink.
ssh -o "StrictHostKeyChecking no" -i "$HOME/.ssh/${KEY_NAME}" "ubuntu@${controller}" "tar -chzf ${archive_path} jepsen/cockroachdb/store/latest"
scp -o "StrictHostKeyChecking no" -ri "$HOME/.ssh/${KEY_NAME}" "ubuntu@${controller}:${archive_path}" "${artifacts_dir}"
echo "##teamcity[testFailed name='${test} ${nemesis}']"
else
Expand Down

0 comments on commit c1c55b1

Please sign in to comment.