Skip to content

Commit 57de3b0

Browse files
committed
Fix scala#3415: spurious clone failures in CI
1 parent c8411af commit 57de3b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.drone.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# We override the default clone step to workaround a bug with GitHub (see #3415)
2+
clone:
3+
custom:
4+
image: plugins/git
5+
commands:
6+
- sleep 5s
7+
- git init
8+
- git remote add origin $DRONE_REMOTE_URL
9+
- git fetch origin $DRONE_COMMIT_REF
10+
- git checkout -qf $DRONE_COMMIT_SHA
11+
- git submodule update --init --recursive
12+
113
pipeline:
214
# TESTS:
315
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict

0 commit comments

Comments
 (0)