Skip to content

Commit c1a6a4e

Browse files
committed
this might be a fairly simple change
1 parent 072f823 commit c1a6a4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eng/pipelines/templates/steps/smoke-test-steps.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919
versionSpec: $(PythonVersion)
2020

2121
- script: |
22-
python -m pip install pip==20.0.2
22+
python -m pip install pip==24.0
2323
pip --version
2424
displayName: pip --version
2525
@@ -32,9 +32,9 @@ steps:
3232
$packages = Get-ChildItem "$(Pipeline.Workspace)/${{ parameters.ArtifactName }}/${{ parameters.Artifact.name }}/*.tar.gz"
3333
Write-Host "Artifacts found:"
3434
$artifacts = $packages | ForEach-Object {
35-
if ($_.Name -match "([a-zA-Z\-]+)\-(.*).tar.gz") {
35+
if ($_.Name -match "([a-zA-Z\-\_]+)\-(.*).tar.gz") {
3636
Write-Host "$($matches[1]): $($matches[2])"
37-
return @{ "name" = $matches[1]; "version" = $matches[2] }
37+
return @{ "name" = $matches[1].ToString().Replace("_", "-"); "version" = $matches[2] }
3838
}
3939
}
4040
if ($artifacts.name -notcontains "${{parameters.Artifact.name}}") {
@@ -58,7 +58,7 @@ steps:
5858
displayName: Override requirements with pipeline build artifact versions
5959
6060
# Retry for pip install due to delay in package availability after publish
61-
# The package is expected to be available for download/installation within 10 minutes
61+
# The package is expected to be available for download/installation within 10 minutes
6262
- pwsh: |
6363
$ErrorActionPreference = "Continue"
6464
while ($retries++ -lt 15) {

0 commit comments

Comments
 (0)