forked from microsoft/security-devops-azdevops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRollback.ps1
More file actions
20 lines (14 loc) · 807 Bytes
/
Copy pathRollback.ps1
File metadata and controls
20 lines (14 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (c) Microsoft Corporation. All rights reserved.
Param
(
[String] $ExtensionFilePath,
[String] $Configuration
)
Write-Host 'Upticking extension version for rollback...'
# Uptick the extension and build task minor versions twice
$updateExtensionVersionFilePath = Join-Path $PSScriptRoot 'Update-ExtensionVersion.ps1'
& $updateExtensionVersionFilePath -FilePath $ExtensionFilePath -Minor -Count 3
& $updateExtensionVersionFilePath -FilePath $ExtensionFilePath -Patch -Count 1
$updateBuildTaskVersionsFilePath = (Join-Path $PSScriptRoot 'Update-BuildTaskVersions.ps1')
& $updateBuildTaskVersionsFilePath -Minor -Count 5 -Directory 'lib' -Configuration $Configuration
& $updateBuildTaskVersionsFilePath -Patch -Count 1 -Directory 'lib' -Configuration $Configuration