Out-File: /home/vsts/.local/share/powershell/Modules/PSRule.Rules.AzureDevOps/0.4.3/Functions/DevOps.ServiceConnections.ps1:156
Line |
156 | … Depth 100 | Out-File "$OutputPath/$($serviceConnection.name).ado.sc.j …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path '/home/vsts/work/_temp/CI/CD template
| Repo Connection.ado.sc.json'.
Need to add fix in code in case if Azure DevOps service connection contains backslash /:
Link to line in code: https://github.com/cloudyspells/PSRule.Rules.AzureDevOps/blob/e609897620d10de08b88a8be416994066142ce23/src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1#L156
Error message from Azure DevOps pipeline: