We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 182f146 commit 3afcf36Copy full SHA for 3afcf36
eng/common/scripts/SetTestPipelineVersion.ps1
@@ -21,6 +21,7 @@ Write-Host "BuildID: $BuildID"
21
Write-Host "ArtifactsJson: $ArtifactsJson"
22
23
$packageNamesArray = @()
24
+$artifacts = $null
25
26
# If ArtifactsJson is provided, extract package names from it
27
if (![String]::IsNullOrWhiteSpace($ArtifactsJson)) {
@@ -43,10 +44,9 @@ else {
43
44
exit 1
45
}
46
-if (![String]::IsNullOrWhiteSpace($ArtifactsJson)) {
47
+if ($artifacts) {
48
# When using ArtifactsJson, process each artifact with its name and groupId (if applicable)
49
try {
- $artifacts = $ArtifactsJson | ConvertFrom-Json
50
foreach ($artifact in $artifacts) {
51
$packageName = $artifact.name
52
$newVersion = [AzureEngSemanticVersion]::new("1.0.0")
0 commit comments