diff --git a/packages/@aws-cdk-testing/cli-integ/lib/staging/maven.ts b/packages/@aws-cdk-testing/cli-integ/lib/staging/maven.ts index 4a7412f58304e..8da08ad1d6f15 100644 --- a/packages/@aws-cdk-testing/cli-integ/lib/staging/maven.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/staging/maven.ts @@ -52,6 +52,10 @@ export async function uploadJavaPackages(packages: string[], login: LoginInforma console.log(`❌ ${pkg}: already exists. Skipped.`); return 'skip'; } + if (output.toString().includes('Too Many Requests')) { + console.log(`♻️ ${pkg}: Too many requests. Retrying.`); + return 'retry'; + } return 'fail'; }); }