Skip to content

Filter the TestPackage artifact upload by name to avoid other zip files being uploaded - #8116

Merged
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
adityapatwardhan:FixMacOSTestPackage
Oct 29, 2018
Merged

Filter the TestPackage artifact upload by name to avoid other zip files being uploaded #8116
Aditya Patwardhan (adityapatwardhan) merged 3 commits into
PowerShell:masterfrom
adityapatwardhan:FixMacOSTestPackage

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented Oct 24, 2018

Copy link
Copy Markdown
Member

PR Summary

Added logging for New-TestPackage to make debugging easier.
Filter the artifact uploads with the package name instead of *.zip to avoid Help Zip files from being uploaded.

PR Checklist

@adityapatwardhan

Copy link
Copy Markdown
Member Author

I have verified the changes on a private CI run, which is a clone of the official Azure DevOps pipeline.

@anmenaga Andrew (anmenaga) left a comment

Copy link
Copy Markdown

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.

Comment thread .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"

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Collaborator

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

Comment thread .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"

Copy link
Copy Markdown
Collaborator

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.

@adityapatwardhan

Aditya Patwardhan (adityapatwardhan) commented Oct 29, 2018

Copy link
Copy Markdown
Member Author

James Truher (@JamesWTruher) Andrew (@anmenaga) Removed the usage of $pwd it was a debug statement which can now be removed.

@adityapatwardhan

Copy link
Copy Markdown
Member Author

I will merge when CI passes.

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit d7c7fa5 into PowerShell:master Oct 29, 2018
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) deleted the FixMacOSTestPackage branch October 29, 2018 21:13
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants