-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Filter the TestPackage artifact upload by name to avoid other zip files being uploaded #8116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter the TestPackage artifact upload by name to avoid other zip files being uploaded #8116
Conversation
|
I have verified the changes on a private CI run, which is a clone of the official Azure DevOps pipeline. |
anmenaga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 update needed; otherwise looks good.
.vsts-ci/mac.yml
Outdated
| # Uploads any packages as an artifact | ||
| - powershell: | | ||
| Get-ChildItem -Path *.pkg, *.tar.gz, *.zip -Recurse | Select-Object -ExpandProperty FullName | ForEach-Object { | ||
| Write-Host "PWD == $pwd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember $pwd variable should Not be used in scripts. Change to Get-Location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's likely in this context it's ok, but something that we should be aware of.
JamesWTruher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my comment isn't blocking
.vsts-ci/mac.yml
Outdated
| # Uploads any packages as an artifact | ||
| - powershell: | | ||
| Get-ChildItem -Path *.pkg, *.tar.gz, *.zip -Recurse | Select-Object -ExpandProperty FullName | ForEach-Object { | ||
| Write-Host "PWD == $pwd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's likely in this context it's ok, but something that we should be aware of.
|
@JamesWTruher @anmenaga Removed the usage of |
|
I will merge when CI passes. |
PR Summary
Added logging for
New-TestPackageto make debugging easier.Filter the artifact uploads with the package name instead of *.zip to avoid Help Zip files from being uploaded.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests