Added delays to releaseNightly to make it more reliable

This commit is contained in:
Dominika 2020-05-03 13:26:26 -04:00 committed by GitHub
parent 4bef396aff
commit feb429c98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -24,9 +24,14 @@ export COMMIT_LAST_FULL="$(git log --format=%H -1)"
git fetch kamiblue master
git fetch origin master
sleep 0.5
git reset --hard kamiblue/master
git push --force origin HEAD:master
sleep 1
export COMMIT_TRIM="$(git log --format=%h -1)"
if [[ "$COMMIT_LAST" == "$COMMIT_TRIM" ]]; then
@ -36,5 +41,7 @@ fi
rm -rf build/libs
./scripts/preHook.sh
sleep 1
./gradlew build
./scripts/hook.sh
sleep 2
./scripts/hook.sh