chore(ci): batch screenshot uploads (#15975)

This commit is contained in:
dwieeb
2018-10-16 15:25:58 -05:00
committed by GitHub
parent d88c6e1bbc
commit c1cbeb3a82

View File

@@ -94,7 +94,15 @@ class CIScreenshotConnector extends IonicConnector {
);
}
await Promise.all(uploads);
const uploadBatches = [];
while (uploads.length > 0) {
uploadBatches.push(uploads.splice(0, 10));
}
for (const batch of uploadBatches) {
await Promise.all(batch);
}
timespan.finish(`publishing build finished`);