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
In our pipelines, a decorator runs after a deployment job ends to do some optional post deployment work.
This decorator is as follows:
- task: AzurePowerShell@5displayName: "dn"continueOnError: trueretryCountOnTaskFailure: 3inputs:
ScriptType: "InlineScript"azureSubscription: serviceConnection-$(System.TeamProject)"azurePowerShellVersion: LatestVersionInline: | do work }env:
JOB_STEPS: ${{ convertToJson(job.steps) }}
On the first run of the deployment job, the job succeed without any issue.
However on subsequent attempts of the same run (ie: if the deployment fails and "rerun failed job" is clicked. Or with the new "rerun only this stage" feature), this task fails with:
##[debug]Retrying OIDC token fetch. Retries left: 3
##[debug]Retrying OIDC token fetch. Retries left: 2
##[debug]Agent environment resources - Disk: / Available 53241.00 MB out of 64201.00 MB, Memory: Used 689.00 MB out of 3377.00 MB, CPU: Usage 9.56%
##[debug]Retrying OIDC token fetch. Retries left: 1
##[debug]task result: Failed
##[error]run() failed
The service connection used for this task is a shared service connection using workload identity for the connection with ADO.
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Debian 12
Relevant log output
Generating script.
##[debug]System.TeamProjectId=id##[debug]System.HostType=build##[debug]System.PlanId=4a07c83d-742d-499e-a457-21c0a5727ee0##[debug]System.JobId=108bf56a-fa83-5421-f47c-16e1929a4329##[debug]System.CollectionUri=https://dev.azure.com/project/##[debug]Getting credentials for local feeds##[debug]SYSTEMVSSCONNECTION exists true##[debug]Got auth token##[debug]Agent environment resources - Disk: / Available 53241.00 MB out of 64201.00 MB, Memory: Used 689.00 MB out of 3377.00 MB, CPU: Usage 10.50%##[debug]Retrying OIDC token fetch. Retries left: 3##[debug]Retrying OIDC token fetch. Retries left: 2##[debug]Agent environment resources - Disk: / Available 53241.00 MB out of 64201.00 MB, Memory: Used 689.00 MB out of 3377.00 MB, CPU: Usage 9.56%##[debug]Retrying OIDC token fetch. Retries left: 1##[debug]task result: Failed##[error]run() failed
New issue checklist
Task name
AzurePowershell
Task version
5.237.9
Issue Description
In our pipelines, a decorator runs after a deployment job ends to do some optional post deployment work.
This decorator is as follows:
On the first run of the deployment job, the job succeed without any issue.
However on subsequent attempts of the same run (ie: if the deployment fails and "rerun failed job" is clicked. Or with the new "rerun only this stage" feature), this task fails with:
The service connection used for this task is a shared service connection using workload identity for the connection with ADO.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Debian 12
Relevant log output
Full task logs with system.debug enabled
Repro steps
No response
The text was updated successfully, but these errors were encountered: