mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
release insiders with rollout of 4 hours (#279331)
This commit is contained in:
@@ -59,8 +59,15 @@ async function main(force: boolean): Promise<void> {
|
||||
|
||||
console.log(`Releasing build ${commit}...`);
|
||||
|
||||
let rolloutDurationMs = undefined;
|
||||
|
||||
// If the build is insiders or exploration, start a rollout of 4 hours
|
||||
if (quality === 'insiders') {
|
||||
rolloutDurationMs = 4 * 60 * 60 * 1000; // 4 hours
|
||||
}
|
||||
|
||||
const scripts = client.database('builds').container(quality).scripts;
|
||||
await retry(() => scripts.storedProcedure('releaseBuild').execute('', [commit]));
|
||||
await retry(() => scripts.storedProcedure('releaseBuild').execute('', [commit, rolloutDurationMs]));
|
||||
}
|
||||
|
||||
const [, , force] = process.argv;
|
||||
|
||||
Reference in New Issue
Block a user