Commit 2348e21
Fix scoped builds crashing on integration publishing (#42014)
When a build is scoped via BuildTargetingString, only targeted packages
have artifact directories. The Integration stage was calling Get-ChildItem
on all artifact directories, causing a fatal error for non-targeted packages.
Add Test-Path check to gracefully skip packages whose artifact directories
don't exist, logging a clear message indicating the package was not targeted.
Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/034428c7-04c1-4353-9aac-7b0e713c1aaf
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>1 parent 24f2e03 commit 2348e21
1 file changed
Lines changed: 12 additions & 3 deletions
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
391 | 400 | | |
392 | 401 | | |
393 | 402 | | |
394 | 403 | | |
395 | 404 | | |
396 | 405 | | |
397 | | - | |
| 406 | + | |
398 | 407 | | |
399 | | - | |
| 408 | + | |
400 | 409 | | |
401 | 410 | | |
402 | 411 | | |
| |||
0 commit comments