Remove pretry as it doesn't catch all of the errors, add manual handling
Compare changes
Files
3+ 37
− 27
@@ -16,7 +16,6 @@ import { exec as execProcess } from 'child_process';
@@ -16,7 +16,6 @@ import { exec as execProcess } from 'child_process';
@@ -33,16 +32,27 @@ const artificialSpecData = { items: [] };
@@ -33,16 +32,27 @@ const artificialSpecData = { items: [] };
@@ -64,10 +74,21 @@ function isExternalSpec(location) {
@@ -64,10 +74,21 @@ function isExternalSpec(location) {
`npx @redocly/cli build-docs --output="..${path.sep}content${path.sep}${specMachineName}${path.sep}index.html" "${specMachineName}${path.sep}openapi.yaml"`
@@ -101,19 +122,13 @@ async function run() {
@@ -101,19 +122,13 @@ async function run() {
onFailedAttempt: error => console.log(`Attempt ${error.attemptNumber} failed. There are ${error.retriesLeft} retries left.`),
@@ -121,11 +136,6 @@ async function run() {
@@ -121,11 +136,6 @@ async function run() {
onFailedAttempt: error => console.log(`Attempt ${error.attemptNumber} failed. There are ${error.retriesLeft} retries left.`),