From b23dc315d68dbbb1c900b0eb3c20a3724bdac8d5 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Tue, 23 Jul 2019 11:41:19 -0700 Subject: [PATCH] set the auto release for insider build (#6469) --- build/azure-pipelines/common/publish.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/azure-pipelines/common/publish.ts b/build/azure-pipelines/common/publish.ts index 7657332d69..96e0d617e5 100644 --- a/build/azure-pipelines/common/publish.ts +++ b/build/azure-pipelines/common/publish.ts @@ -215,11 +215,15 @@ async function publish(commit: string, quality: string, platform: string, type: console.log('Asset:', JSON.stringify(asset, null, ' ')); + // {{SQL CARBON EDIT}} + // Insiders: nightly build from master + const isReleased = (quality === 'insider' && /^master$|^refs\/heads\/master$/.test(sourceBranch) && /Project Collection Service Accounts|Microsoft.VisualStudio.Services.TFS/.test(queuedBy)); + const release = { id: commit, timestamp: (new Date()).getTime(), version, - isReleased: false, + isReleased: isReleased, sourceBranch, queuedBy, assets: [] as Array,