KEMBAR78
[release/v7.6.0-preview.2]PMC parse state correctly from update command's response by TravisEz13 · Pull Request #24851 · PowerShell/PowerShell · GitHub
Skip to content

Conversation

@TravisEz13
Copy link
Member

Backport #24850

This pull request includes important changes to the Publish-PackageToPMC function in the .pipelines/EV2Specs/ServiceGroupRoot/Shell/Run/Run.ps1 file. The changes enhance error handling and improve logging for package publishing processes.

Improvements to error handling and logging:

  • Modified the assignment of $state to convert JSON response and added verbose logging for the update response state. This helps in better tracking of the state during the publishing process.
  • Introduced a $rawPublishResponse variable to capture the response from the pmc command and added verbose logging for the publish response state. This ensures that any issues during the final publish are logged and can be debugged more effectively.

* Parse Json before accessing state property for PMC

* fix typo
@TravisEz13
Copy link
Member Author

/azp run PowerShell-CI-macos, PowerShell-CI-Linux, PowerShell-CI-Windows, PSResourceGet ACR, PowerShell-Windows-Packaging-CI

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@TravisEz13 TravisEz13 merged commit 72d0774 into release/v7.6.0-preview.2 Jan 23, 2025
8 checks passed
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Jan 23, 2025

📣 Hey @TravisEz13, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

@TravisEz13 TravisEz13 deleted the backport-24850-76p2 branch March 24, 2025 17:55
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