Skip to content

Commit

Permalink
Remove usage of bcdocker and businesscentralapps storage accounts (#3548
Browse files Browse the repository at this point in the history
)

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored May 23, 2024
1 parent ffb5604 commit b3c7eab
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions AppHandling/Run-AlPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@
.Example
Please visit https://www.freddysblog.com for descriptions
.Example
Please visit https://dev.azure.com/businesscentralapps/HelloWorld for Per Tenant Extension example
Please visit https://github.com/microsoft/bcsamples-bingmaps.pte for Per Tenant Extension example
.Example
Please visit https://dev.azure.com/businesscentralapps/HelloWorld.AppSource for AppSource example
Please visit https://github.com/microsoft/bcsamples-bingmaps.appsource for AppSource example
#>
function Run-AlPipeline {
Expand Down
4 changes: 2 additions & 2 deletions ContainerHandling/New-NavContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2177,15 +2177,15 @@ if (-not `$restartingInstance) {
if ($version -eq [System.Version]"14.10.40471.0") {
Write-Host "Patching Microsoft.Dynamics.Nav.Ide.psm1 in container due to issue #859"
$idepsm = Join-Path $containerFolder "14.10.40471.0-Patch-Microsoft.Dynamics.Nav.Ide.psm1"
Download-File -sourceUrl 'https://bcdocker.blob.core.windows.net/public/14.10.40471.0-Patch-Microsoft.Dynamics.Nav.Ide.psm1' -destinationFile $idepsm
Download-File -sourceUrl 'https://bcartifacts.blob.core.windows.net/patch/14.10.40471.0/Microsoft.Dynamics.Nav.Ide.psm1' -destinationFile $idepsm
Invoke-ScriptInBcContainer -containerName $containerName -scriptblock { Param($idepsm)
Copy-Item -Path $idepsm -Destination 'C:\Program Files (x86)\Microsoft Dynamics NAV\140\RoleTailored Client\Microsoft.Dynamics.Nav.Ide.psm1' -Force
} -argumentList (Get-BcContainerPath -containerName $containerName -path $idepsm)
Remove-BcContainerSession -containerName $containerName
}

if ((($version -eq [System.Version]"16.0.11240.12076") -or ($version -eq [System.Version]"16.0.11240.12085")) -and $devCountry -ne "W1") {
$url = "https://bcdocker.blob.core.windows.net/public/12076-patch/$($devCountry.ToUpper()).zip"
$url = "https://bcartifacts.blob.core.windows.net/patch/16.0.11240.12076/$($devCountry.ToUpper()).zip"
Write-Host "Downloading new test apps for this version from $url"
$zipName = Join-Path $containerFolder "16.0.11240.12076-$devCountry-Tests-Patch"
Download-File -sourceUrl $url -destinationFile "$zipName.zip"
Expand Down
2 changes: 1 addition & 1 deletion PackageHandling/Publish-BuildOutputToAzureFeed.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Function for publishing build output from Run-AlPipeline to storage account
.Description
Function for publishing build output to storage account
The function will publish artifacts in the format of https://businesscentralapps.blob.core.windows.net/bingmaps/16.0.10208.0/apps.zip
The function will publish artifacts in the format of https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/19.0.0/bcsamples-bingmaps.pte-main-Apps-19.0.168.0.zip
Please consult the CI/CD Workshop document at http://aka.ms/cicdhol to learn more about this function
.Parameter Organization
A connectionstring with access to the storage account in which you want to publish artifacts (SecureString or String)
Expand Down
2 changes: 1 addition & 1 deletion PackageHandling/Publish-BuildOutputToStorage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Function for publishing build output from Run-AlPipeline to storage account
.Description
Function for publishing build output to storage account
The function will publish artifacts in the format of https://businesscentralapps.blob.core.windows.net/bingmaps/16.0.10208.0/apps.zip
The function will publish artifacts in the format of https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/19.0.0/bcsamples-bingmaps.pte-main-Apps-19.0.168.0.zip
Please consult the CI/CD Workshop document at http://aka.ms/cicdhol to learn more about this function
.Parameter StorageConnectionString
A connectionstring with access to the storage account in which you want to publish artifacts (SecureString or String)
Expand Down
4 changes: 2 additions & 2 deletions Tests/Run-AlPipeline (Windows Auth).Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Describe 'Run-AlPipeline' {
-baseFolder $baseFolder `
-containerName $bccontainerName `
-credential $credential `
-installApps @("https://businesscentralapps.blob.core.windows.net/bingmaps-pte/latest/bingmaps-pte-apps.zip") `
-installApps @("https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/24.0.0/bcsamples-bingmaps.pte-main-Apps-24.0.169.0.zip") `
-appFolders "app,base" `
-testFolders @("test") `
-previousApps @("https://businesscentralapps.blob.core.windows.net/githubhelloworld/2.0.32.0/apps.zip") `
-previousApps @("https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/19.0.0/bcsamples-bingmaps.pte-main-Apps-19.0.168.0.zip") `
-appBuild ([int32]::MaxValue) `
-appRevision 0 `
-testResultsFile $resultsFile `
Expand Down
4 changes: 2 additions & 2 deletions Tests/Run-AlPipeline.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Describe 'Run-AlPipeline' {
-baseFolder $baseFolder `
-containerName $bccontainerName `
-credential $credential `
-installApps @("https://businesscentralapps.blob.core.windows.net/bingmaps-pte/latest/bingmaps-pte-apps.zip") `
-installApps @("https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/24.0.0/bcsamples-bingmaps.pte-main-Apps-24.0.169.0.zip") `
-appFolders "app,base" `
-testFolders @("test") `
-previousApps @("https://businesscentralapps.blob.core.windows.net/githubhelloworld/2.0.32.0/apps.zip") `
-previousApps @("https://github.com/microsoft/bcsamples-bingmaps.pte/releases/download/19.0.0/bcsamples-bingmaps.pte-main-Apps-19.0.168.0.zip") `
-additionalCountries "dk,de" `
-appBuild ([int32]::MaxValue) `
-appRevision 0 `
Expand Down
8 changes: 4 additions & 4 deletions UserHandling/Setup-NavContainerTestUsers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,19 @@ try {
}
if ($createTestUsersAppUrl -eq '') {
if (([System.Version]$version).Major -ge 22) {
$createTestUsersAppUrl = "https://businesscentralapps.blob.core.windows.net/createtestusers/22.0/Microsoft_CreateTestUsers_22.0.22.0.app"
$createTestUsersAppUrl = "https://github.com/BusinessCentralApps/CreateTestUsers/releases/download/22.0.30/CreateTestUsers-main-TestApps-22.0.30.0.zip"
}
elseif (([System.Version]$version).Major -ge 16) {
$createTestUsersAppUrl = "https://businesscentralapps.blob.core.windows.net/createtestusers/16.0.7.0/createtestusers-testapps.zip"
$createTestUsersAppUrl = "https://github.com/BusinessCentralApps/CreateTestUsers/releases/download/16.0.7/CreateTestUsers-TestApps-16.0.7.0.zip"
}
else {
$createTestUsersAppUrl = "https://businesscentralapps.blob.core.windows.net/createtestusers/15.0.6.0/createtestusers-testapps.zip"
$createTestUsersAppUrl = "https://github.com/BusinessCentralApps/CreateTestUsers/releases/download/15.0.6/CreateTestUsers-TestApps-15.0.6.0.zip"
}
}
}
else {
if ($createTestUsersAppUrl -eq '') {
$createTestUsersAppUrl = "https://businesscentralapps.blob.core.windows.net/createtestusers/Microsoft_CreateTestUsers_13.0.0.0.app"
$createTestUsersAppUrl = "https://github.com/BusinessCentralApps/CreateTestUsers/releases/download/13.0.0/Microsoft_CreateTestUsers_13.0.0.0.zip"
}
$select = ''
}
Expand Down

0 comments on commit b3c7eab

Please sign in to comment.