Skip to content

Commit 074b1eb

Browse files
authored
Fix Get-OSRepoAvailableVersions (#98)
* Fix storage account * Updated changelog * Bumped version
1 parent a528812 commit 074b1eb

5 files changed

Lines changed: 11 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Outsystems.SetupTools Release History
22

3+
## 3.13.1.0
4+
5+
- Fixed Get-OSRepoAvailableVersions. Was getting versions from an old storage account
6+
37
## 3.13.0.0
48

59
- Updated Install-OSServerPreReqs. Now installs .NET Core hosting bundle version 3.1.14 and 2.1.12. The new .NET Core version is a pre-req of newer OutSystems 11 versions. To maintain compability we decided to install both versions

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.13.0.{build}
1+
version: 3.13.1.{build}
22

33
only_commits:
44
files:

src/Outsystems.SetupTools/Lib/Constants.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,6 @@ $OSTelSessionId = ''
155155
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '')]
156156
$OSTelOperationId = ''
157157

158-
# AzStorage
159-
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '')]
160-
$OSAzStorageAccountName = 'myfilerepo'
161-
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '')]
162-
$OSAzStorageSASToken = 'nAFk4sFRvsisvgwfijMpi67fy6ZAw8yfPvJXeiqOLUc%3D'
163-
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '')]
164-
$OSAzStorageContainer = 'sources'
165-
166-
167158
# IIS configuration
168159
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '')]
169160
$OSIISConfig = @(

src/Outsystems.SetupTools/Lib/PlatformSetup.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,13 +849,14 @@ function GetPlatformVersion([string]$SCHost)
849849

850850
function GetAzStorageFileList()
851851
{
852-
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Stream 2 -Message "Getting file list from storage account $OSAzStorageAccountName"
852+
$stoAccountName = (([System.Uri]$OSRepoURL).Host).Split('.')[0]
853+
$stoContainer = ([System.Uri]$OSRepoURL).Segments[1]
854+
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Stream 2 -Message "Getting file list from storage account $stoAccountName container $stoContainer"
853855

854-
# This function never throws anything
855-
$stoCtx = New-AzureStorageContext -StorageAccountName $OSAzStorageAccountName -SasToken $OSAzStorageSASToken -ErrorAction 'Stop'
856+
$stoCtx = New-AzureStorageContext -StorageAccountName $stoAccountName -Anonymous -ErrorAction Stop
856857

857858
$ProgressPreference = "SilentlyContinue"
858-
$sources = $(Get-AzureStorageBlob -Container $OSAzStorageContainer -Context $stoCtx -ErrorAction 'Stop').Name
859+
$sources = $(Get-AzureStorageBlob -Container $stoContainer -Context $stoCtx -ErrorAction Stop).Name
859860

860861
LogMessage -Function $($MyInvocation.Mycommand) -Phase 1 -Stream 2 -Message "Returning $($sources.Count)"
861862

src/Outsystems.SetupTools/OutSystems.SetupTools.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'OutSystems.SetupTools.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '3.13.0.0'
15+
ModuleVersion = '3.13.1.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)