Pipelines/DevOps-Validation.ps1
Param( [Parameter(Mandatory=$false)] [ValidateSet('AzureDevOps','GithubActions','GitLab')] [string] $environment = 'AzureDevOps', [Parameter(Mandatory=$true)] [string] $version ) if ($environment -eq "AzureDevOps") { $buildArtifactFolder = $ENV:BUILD_ARTIFACTSTAGINGDIRECTORY } elseif ($environment -eq "GitHubActions") { $buildArtifactFolder = Join-Path $ENV:GITHUB_WORKSPACE "output" New-Item $buildArtifactFolder -ItemType Directory | Out-Null } if ($env:APPFOLDER) { $baseFolder = Join-Path $env:SYSTEM_DEFAULTWORKINGDIRECTORY $env:APPFOLDER } else { $baseFolder = $env:SYSTEM_DEFAULTWORKINGDIRECTORY } if ($env:SETTINGSFILE) { $settingsFile = Join-Path $baseFolder $env:SETTINGSFILE } else { $settingsFile = Join-Path $baseFolder "settings.json" } . (Join-Path $PSScriptRoot "Read-Settings.ps1") -environment $environment -version $version -settingsFile $settingsFile . (Join-Path $PSScriptRoot "Install-BcContainerHelper.ps1") -bcContainerHelperVersion $bcContainerHelperVersion -genericImageName $genericImageName $insiderSasToken = "$ENV:insiderSasToken" $licenseFile = "$ENV:licenseFile" [array]$arrayOfApps = Get-ChildItem (Join-Path $buildArtifactFolder 'Apps\*.app') | select -expand fullname Run-AlValidation ` -licenseFile $LicenseFile ` -apps $arrayOfApps ` -affixes $appSourceCopMandatoryAffixes ` -countries $appSourceCopSupportedCountries ` -sasToken $insiderSasToken #-validateNextMajor |