From 98dbde7ddb833737db0ddbcb78fa0ec7cb917b6d Mon Sep 17 00:00:00 2001 From: Brandon Ly Date: Tue, 6 Aug 2024 16:10:54 -0500 Subject: [PATCH] [DOP-4876]: Add deprecation warning message to Autobuilder staging builds (#1067) --- api/controllers/v2/jobs.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/controllers/v2/jobs.ts b/api/controllers/v2/jobs.ts index a5339346b..eebb51a00 100644 --- a/api/controllers/v2/jobs.ts +++ b/api/controllers/v2/jobs.ts @@ -110,11 +110,15 @@ function prepProgressMessage( status: string, errorReason: string ): string { - const msg = `Your Job (<${jobUrl}${jobId}|${jobTitle}>) `; const env = c.get('env'); + const deprecationWarning = + env === 'prd' + ? 'The Autobuilder for staging will be deprecated by Sept. 30th. Please reach out to #ask-docs-platform on questions on how to migrate to Netlify for staging builds.' + : ''; + const msg = `Your Job (<${jobUrl}${jobId}|${jobTitle}>) `; switch (status) { case 'inQueue': - return msg + 'has successfully been added to the ' + env + ' queue.'; + return msg + `has successfully been added to the ${env} queue. ${deprecationWarning}`; case 'inProgress': return msg + 'is now being processed.'; case 'completed':