-
Notifications
You must be signed in to change notification settings - Fork 4k
Add script to create a build drop from a sign job #2956
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
Conversation
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.
A few nits - want to make sure this is robust over re-ordering
$newContent[$idx + 2] = " </discoveryHint>" | ||
|
||
# Change the buffer size to include the three lines just added | ||
$buffer = 3 |
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.
Should we change $VSFeedSeen to false at this point?
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.
I thought about it, but didn't account for the case where the ordering of the file could change. That is a good idea. I will mark as false here.
if ($PSGetSeen -and $content[$idx] -like "*msiProductCode*") | ||
{ | ||
$content[$idx] = " <msiProductCode>$ProductCode</msiProductCode>" | ||
} |
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.
Shoudl we change $PSGetSeen to false at this point?
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.
Same as comment for $VSFeedSeen.
$content[$idx] = " <trackingURL>http://www.microsoft.com/web/handlers/webpi.ashx?command=incrementproddownloadcount&prodid=WindowsAzurePowershell&version=$PSVersion&prodlang=en</trackingURL>" | ||
} | ||
} | ||
|
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.
Should have a condition here which ends the $PSGetSeen, to make this more robust over changed orderings in the file
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.
Same as comment for $VSFeedSeen.
Comments
Fix for issue #2929
This script will be used for Azure PowerShell releases.
It takes the build artifacts from a sign job and creates a new entry in the shared folder that will contain the msi, packages, scripts and WebPI installers from the PSReleaseDrop folder, and other xml files used for WebPI testing.
This script will also create and push a new branch to the given CodePlex WebPI fork containing the changes to the two xml files.
This checklist is used to make sure that common issues in a pull request are covered by the creator. You can find a more complete discussion of PowerShell cmdlet best practices here.
Below in Overall Changes, check off the boxes that apply to your PR. For the categories that you did not check off, you can remove them from this body. Within each of the categories that you did select, make sure that you can check off all of the boxes.
For information on cleaning up the commits in your pull request, click here.
Overall Changes
General
Tests