Skip bad URLs in the deliver queue, and also print the URL itself
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
da6de92b5a
commit
eb355cf51d
|
@ -20,9 +20,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
|||
try {
|
||||
host = new URL(job.data.to).host;
|
||||
} catch (e) {
|
||||
logger.error(`Invalid URL: ${e}`);
|
||||
await job.discard();
|
||||
throw e;
|
||||
logger.error(`${e} for input: ${job.data.to}`);
|
||||
return "skip";
|
||||
}
|
||||
|
||||
const puny = toPuny(host);
|
||||
|
|
Loading…
Reference in New Issue