EducationPerfect / azure-jira-update

Update Jira with Azure Deployment Information
MIT License
21 stars 17 forks source link

Errors not being handled correctly #5

Closed booyaa closed 2 years ago

booyaa commented 2 years ago

Output from the task

Starting: Update JIRA status
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.194.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/home/vsts/work/_temp/c8c03347-497e-4f0b-b5fa-9d587c92c8dc.ps1'
VERBOSE: Exporting function 'Add-JiraDeploymentInformation'.
VERBOSE: Exporting function 'Update-AzureDeploymentInformation'.

acceptedDeployments rejectedDeployments               unknownIssueKeys unknownA
                                                                       ssociati
                                                                       ons
------------------- -------------------               ---------------- --------
{}                  {@{key=; errors=System.Object[]}} {}               {}

Finishing: Update JIRA status

Background info about our pipeline setup

Please let me know if you need any info.

mwheeler-ep commented 2 years ago

You can set $DebugPreference="Continue" in DeploymentScript.ps1 to display the entire response.

booyaa commented 2 years ago

Enabling debug works, I'll open a separate ticket for the underlying issue.