Skip to content

Commit 56c4834

Browse files
committed
testing different syntax of for loop in cicle ci (it didnt retry the build last time)
1 parent 2b384df commit 56c4834

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ jobs:
1111
name: docker build
1212
no_output_timeout: 60m
1313
command: |
14-
e=1 && for i in {1..5}; do
15-
docker build -t djarecka/nipype_tutorial:$CIRCLE_BRANCH . \
16-
&& e=0 && break || sleep 15
17-
done && [ "$e" -eq "0" ]
14+
for i in {1..5}; do
15+
docker build -t djarecka/nipype_tutorial:$CIRCLE_BRANCH . && break || sleep 15
16+
done
1817
- run:
1918
name: docker run
2019
no_output_timeout: 90m

0 commit comments

Comments
 (0)