Added branch detection in perf branch
This commit is contained in:
parent
c7707f24c2
commit
3a7c5bd40a
@ -26,6 +26,12 @@ function cleanup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
git_br=$(basename $GIT_BRANCH)
|
||||||
|
if [ $git_br == "master" ]; then
|
||||||
|
git_br=""
|
||||||
|
else
|
||||||
|
git_br="."$git_br
|
||||||
|
fi
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
OPT=-DNDEBUG make db_bench -j$(nproc)
|
OPT=-DNDEBUG make db_bench -j$(nproc)
|
||||||
@ -150,7 +156,7 @@ function send_to_ods {
|
|||||||
echo >&2 "ERROR: Key $key doesn't have a value."
|
echo >&2 "ERROR: Key $key doesn't have a value."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
curl -s "https://www.intern.facebook.com/intern/agent/ods_set.php?entity=rocksdb_build&key=$key&value=$value" \
|
curl -s "https://www.intern.facebook.com/intern/agent/ods_set.php?entity=rocksdb_build$git_br&key=$key&value=$value" \
|
||||||
--connect-timeout 60
|
--connect-timeout 60
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user