@@ -110,6 +110,26 @@ commands:
110
110
name : " Wait for IPFS daemon to start"
111
111
command : wget --output-document - --retry-connrefused --waitretry=20 --read-timeout=20 --timeout=15 -t 10 --post-data '' "http://localhost:5001/api/v0/version"
112
112
113
+ wait-for-cannon-build :
114
+ steps :
115
+ - run :
116
+ name : " Wait for cannon to complete the build"
117
+ command : |
118
+ touch ./cannon-build.log
119
+ # If the information wasn't found, start tailing the log
120
+ if ! grep -q 'The local node will continue running at' ./cannon-build.log; then
121
+ while IFS= read -r line
122
+ do
123
+ echo $line
124
+ if [[ $line == *"The local node will continue running at"* ]]; then
125
+ break
126
+ fi
127
+ if [[ $line == *"An error occured during build"* ]]; then
128
+ exit 1
129
+ fi
130
+ done < <(tail -f -n0 ./cannon-build.log)
131
+ fi
132
+
113
133
github-pr :
114
134
parameters :
115
135
working_directory :
@@ -255,21 +275,9 @@ jobs:
255
275
--upgrade-from << parameters.package >>@<< parameters.preset >> \
256
276
--chain-id << parameters.chain-id >> \
257
277
--provider-url << parameters.provider-url >> \
258
- | tee ./cannon-build.log
278
+ 2>&1 | tee ./cannon-build.log
259
279
260
- - run :
261
- name : " Wait for cannon to complete the build"
262
- command : |
263
- touch ./cannon-build.log
264
- # If the information wasn't found, start tailing the log
265
- if ! grep -q 'The local node will continue running at' ./cannon-build.log; then
266
- while IFS= read -r line
267
- do
268
- if [[ $line == *"The local node will continue running at"* ]]; then
269
- break
270
- fi
271
- done < <(tail -f -n0 ./cannon-build.log)
272
- fi
280
+ - wait-for-cannon-build
273
281
274
282
- store_artifacts :
275
283
path : " ./cannon-build.log"
@@ -361,21 +369,9 @@ jobs:
361
369
--dry-run \
362
370
--chain-id << parameters.chain-id >> \
363
371
--provider-url << parameters.provider-url >> \
364
- | tee ./cannon-build.log
372
+ 2>&1 | tee ./cannon-build.log
365
373
366
- - run :
367
- name : " Wait for cannon to complete the build"
368
- command : |
369
- touch ./cannon-build.log
370
- # If the information wasn't found, start tailing the log
371
- if ! grep -q 'The local node will continue running at' ./cannon-build.log; then
372
- while IFS= read -r line
373
- do
374
- if [[ $line == *"The local node will continue running at"* ]]; then
375
- break
376
- fi
377
- done < <(tail -f -n0 ./cannon-build.log)
378
- fi
374
+ - wait-for-cannon-build
379
375
380
376
- store_artifacts :
381
377
path : " ./cannon-build.log"
@@ -661,21 +657,9 @@ jobs:
661
657
--upgrade-from << parameters.package >>@<< parameters.preset >> \
662
658
--chain-id << parameters.chain-id >> \
663
659
--provider-url << parameters.provider-url >> \
664
- | tee ./cannon-build.log
660
+ 2>&1 | tee ./cannon-build.log
665
661
666
- - run :
667
- name : " Wait for cannon to complete the build"
668
- command : |
669
- touch ./cannon-build.log
670
- # If the information wasn't found, start tailing the log
671
- if ! grep -q 'The local node will continue running at' ./cannon-build.log; then
672
- while IFS= read -r line
673
- do
674
- if [[ $line == *"The local node will continue running at"* ]]; then
675
- break
676
- fi
677
- done < <(tail -f -n0 ./cannon-build.log)
678
- fi
662
+ - wait-for-cannon-build
679
663
680
664
- store_artifacts :
681
665
path : " ./cannon-build.log"
0 commit comments