Skip to content

Commit

Permalink
fix success webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Jan 23, 2017
1 parent e3bd7c9 commit dfbb774
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions success_webhook.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

if [ "$LIBRDKAFKA_VERSION" != "master" ]; then
VERSION=$(cat ./api/version.go | grep "var VERSION" | awk ' { print $4 } ' | sed s/\"//g)
COMMIT=$(git rev-parse --short HEAD)

curl -X POST "$FARM_URL$TRAVIS_BUILD_NUMBER-v$VERSION-$COMMIT"
VERSION=$(cat ./util/version.go | grep "var Version" | awk ' { print $4 } ' | sed s/\"//g)
curl -X POST "$FARM_URL$VERSION.$TRAVIS_BUILD_NUMBER"
fi

0 comments on commit dfbb774

Please sign in to comment.