pluto icon indicating copy to clipboard operation
pluto copied to clipboard

Unable to run pluto via Azure DevOps Pipeline

Open jlangford9284 opened this issue 3 years ago • 1 comments

What happened?

I want to check our helm charts as part of a pipeline

I am able to run this locally

helm template /helm/directory | ./pluto detect -

however when I run this as part of an Azure DevOps Pipeline I am faced with this error

Cannot run a document in the middle of a pipeline: C:\a\2\s\pluto. At C:\a\_temp\d3c2dca5-aa11-4e53-afac-9bad2cc0cb19.ps1:34 char:61 + ... mplate C:\a\2/s/helm/nginx-ingress | ./pluto detect -

I am using a linux agent but this also is the same on a windows agent

What did you expect to happen?

to run pluto as it does locally

How can we reproduce this?

Create an azure devops pipeline and try to use pluto with this method : https://pluto.docs.fairwinds.com/quickstart/#helm-chart-checking-local-files

Version

5.10.2

Search

  • [X] I did search for other open and closed issues before opening this.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Additional context

No response

jlangford9284 avatar Jul 14 '22 11:07 jlangford9284

I don't have any familiarity with Azure Devops, but this seems to be an unhelpful error message. More context here:

https://github.com/PowerShell/PowerShell/issues/14556

I don't think this is so much an issue with pluto, as it is an issue with how Azure DevOps works.

sudermanjr avatar Jul 14 '22 16:07 sudermanjr

Please let us know if you find any more information about this issue. Closing for now.

sudermanjr avatar Sep 15 '22 18:09 sudermanjr