mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(travis): fix jenkins branch deploy error on deploy-gitstats job
Error was caused by qTox repo already being cloned by the `deploy-gitstats` job.
This commit is contained in:
parent
d320b1f259
commit
5e694492b9
|
@ -24,7 +24,12 @@
|
|||
set -eu -o pipefail
|
||||
|
||||
main() {
|
||||
git clone https://github.com/qTox/qTox.git qTox
|
||||
# can already be cloned by the `build-gitstats` job
|
||||
if [[ ! -e qTox ]]
|
||||
then
|
||||
git clone https://github.com/qTox/qTox.git qTox
|
||||
fi
|
||||
|
||||
cd qTox
|
||||
git checkout $(git describe --abbrev=0) -b for-jenkins-release
|
||||
git push --force "https://${GH_DEPLOY_JENKINS}@github.com/qTox/qTox.git"
|
||||
|
|
Loading…
Reference in New Issue
Block a user