Skip to content

Commit

Permalink
Only load the last 2 days of artifacts to speed up the pipeline a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanMaron authored Oct 17, 2024
1 parent a83a0f5 commit 3bb7a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Auto_load_versions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
$ErrorActionPreference = "SilentlyContinue"

[System.Collections.ArrayList]$Versions = @()
# Get-BCArtifactUrl -select All -Type OnPrem -country $country -after ([DateTime]::Today.AddDays(-1)) | % {
Get-BCArtifactUrl -select All -Type OnPrem -country $country | % {
Get-BCArtifactUrl -select All -Type OnPrem -country $country -after ([DateTime]::Today.AddDays(-2)) | % {
# Get-BCArtifactUrl -select All -Type OnPrem -country $country | % {
[System.Uri]$Url = $_
$TempString = $Url.AbsolutePath
[version]$Version = $TempString.Split('/')[2]
Expand Down

0 comments on commit 3bb7a6d

Please sign in to comment.