jobwat
1
Hi,
Is there a way to gather the return code
of the parallel runs ?
I’m willing to control the results of multiple tests ran in parallel
I want a secondary, non-parallel script, to do it
Something like that:
test:
override:
- ./parallel_run:
parallel: true
- ./check_parallel_runs:
parallel: false
I thought the ARTIFACT_DIR was common (I could have write the results in files) but no.
Thanks!
jobwat
2
I found a way with ssh… (https://circleci.com/docs/1.0/ssh-between-build-containers/)
In my check_parallel_runs
non-parallel script I scp back all sub-nodes and do my little business then
cd $CIRCLE_ARTIFACTS
for i in $(seq 0 $[$CIRCLE_NODE_TOTAL-1]); do
scp node${i}:'$CIRCLE_ARTIFACTS/*' ./
done
cd -
Happy to hear anyone else idea
Isn’t it faster to use docker cp?
docker cp :/file/path/within/container /host/path/target
Also, I assume you have a barrier/join for all parallel runs before you copy.
jobwat
4
Sorry I see this only now.
I don’t quite get your solution. Each parallel run got its own container.