Skip to content

Commit

Permalink
Move log capture to script so pipe will propagate failures (apache-sp…
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 authored Sep 24, 2017
1 parent dc9af54 commit fdd2e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ deployment:
release:
tag: /[0-9]+(?:\.[0-9]+){2,}-palantir\.[0-9]+(?:\.[0-9]+)*/
commands:
- dev/publish.sh | tee -a "$CIRCLE_ARTIFACTS/publish.log"
- dev/publish.sh
- curl -u $BINTRAY_USERNAME:$BINTRAY_PASSWORD -X POST https://api.bintray.com/content/palantir/releases/spark/$(git describe --tags)/publish
snapshot:
branch: master
commands:
- dev/publish.sh | tee -a "$CIRCLE_ARTIFACTS/publish.log"
- dev/publish.sh
- curl -u $BINTRAY_USERNAME:$BINTRAY_PASSWORD -X POST https://api.bintray.com/content/palantir/releases/spark/$(git describe --tags)/publish
4 changes: 2 additions & 2 deletions dev/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ make_dist() {
curl -u $BINTRAY_USERNAME:$BINTRAY_PASSWORD -T $file_name "https://api.bintray.com/content/palantir/releases/spark/${version}/org/apache/spark/${artifact_name}/${version}/${artifact_name}"
}

publish_artifacts
make_dist "${PALANTIR_FLAGS[*]}" --clean
publish_artifacts | tee -a "$CIRCLE_ARTIFACTS/publish.log"
make_dist "${PALANTIR_FLAGS[*]}" --clean | tee -a "$CIRCLE_ARTIFACTS/publish.log"

0 comments on commit fdd2e01

Please sign in to comment.