You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
2021-11-16T23:09:32.3549810Z ##[section]Starting: Update JIRA status
2021-11-16T23:09:32.3560493Z ==============================================================================
2021-11-16T23:09:32.3561398Z Task : PowerShell
2021-11-16T23:09:32.3562156Z Description : Run a PowerShell script on Linux, macOS, or Windows
2021-11-16T23:09:32.3563062Z Version : 2.194.0
2021-11-16T23:09:32.3563699Z Author : Microsoft Corporation
2021-11-16T23:09:32.3564531Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-11-16T23:09:32.3565420Z ==============================================================================
2021-11-16T23:09:32.4938693Z Generating script.
2021-11-16T23:09:32.4980409Z ========================== Starting Command Output ===========================
2021-11-16T23:09:32.5001748Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/home/vsts/work/_temp/2b1d2e8b-b13a-45f1-8c0c-b08571eae222.ps1'
2021-11-16T23:09:33.2519096Z VERBOSE: Exporting function 'Add-JiraDeploymentInformation'.
2021-11-16T23:09:33.2521368Z VERBOSE: Exporting function 'Update-AzureDeploymentInformation'.
2021-11-16T23:09:34.8173089Z [Deployment Reponse] {
2021-11-16T23:09:34.8174818Z "acceptedDeployments": [],
2021-11-16T23:09:34.8175809Z "rejectedDeployments": [
2021-11-16T23:09:34.8176668Z {
2021-11-16T23:09:34.8177481Z "key": {
2021-11-16T23:09:34.8178345Z "pipelineId": "53",
2021-11-16T23:09:34.8179235Z "environmentId": "19",
2021-11-16T23:09:34.8180180Z "deploymentSequenceNumber": 1637104174
2021-11-16T23:09:34.8181106Z },
2021-11-16T23:09:34.8181931Z "errors": [
2021-11-16T23:09:34.8182930Z {
2021-11-16T23:09:34.8183959Z "message": "Associations must provide at least one value."
2021-11-16T23:09:34.8184965Z }
2021-11-16T23:09:34.8185767Z ]
2021-11-16T23:09:34.8186556Z }
2021-11-16T23:09:34.8187331Z ],
2021-11-16T23:09:34.8188166Z "unknownIssueKeys": [],
2021-11-16T23:09:34.8189072Z "unknownAssociations": []
2021-11-16T23:09:34.8189902Z }
2021-11-16T23:09:34.8270906Z
2021-11-16T23:09:34.8307083Z acceptedDeployments rejectedDeployments unknownIssueKeys unknownA
2021-11-16T23:09:34.8316425Z ssociati
2021-11-16T23:09:34.8317823Z ons
2021-11-16T23:09:34.8319517Z ------------------- ------------------- ---------------- --------
2021-11-16T23:09:34.8320674Z {} {@{key=; errors=System.Object[]}} {} {}
2021-11-16T23:09:34.8327720Z
2021-11-16T23:09:34.9076348Z ##[section]Finishing: Update JIRA status
Steps to reproduce
This is primarily to help others who need to access the internal (private) functions in this excellent plugin.
Usage
Define the following environment variables:
SYSTEM_TOKEN - use your DevOps personal access token
SYSTEM_COLLECTIONURI - usually https://dev.azure.com/<Organization Name>/
SYSTEM_TEAMPROJECT - Project name
BUILD_BUILDID - Pipeline (run) build Id (any "release" branch pipeline run to see the problem)
Run script below
$DebugPreference="Continue"$Features=Import-Module (Join-Path"..""azure-jira-update""EP.PowerShell.JiraDeployInfo") -PassThru # Allows us to access the private functions in this module$SystemAccessToken=$env:SYSTEM_TOKEN# can use your Personal Access Token$AzureChangeUrl="$env:SYSTEM_COLLECTIONURI/$env:SYSTEM_TEAMPROJECT/_traceability/runview/changes?currentRunId=$($env:BUILD_BUILDID)&__rt=fps"$jiraIds=@()
$jiraIds+= ( &$Features`
{
param($SystemAccessToken,$AzureChangeUrl)
Get-JiraIDsFromAzureChanges-SystemAccessToken $SystemAccessToken-AzureChangeUrl $AzureChangeUrl
} `-SystemAccessToken $SystemAccessToken-AzureChangeUrl $AzureChangeUrl )
$jiraIds
Deploys to the "Developement" environment are fine, these types of deploys occur when code is merged to the "main" branch
Deploys to the "Staging" and "Production" environment exhibit this error, these types of deploys occur when code a "releases" branch is created, these are branched off "main". Examples: "releases/1.2.3".
I'm going to see if I can test the PowerShell scripts locally using the build values from a previous pipeline run. Any pointers would be appreciated.
Output from DevOps
Steps to reproduce
This is primarily to help others who need to access the internal (private) functions in this excellent plugin.
Usage
https://dev.azure.com/<Organization Name>/Useful docs
Notes
I'm going to see if I can test the PowerShell scripts locally using the build values from a previous pipeline run. Any pointers would be appreciated.