Azure ADO Helminstaller 找不到可执行文件:"helm"



我在ado yaml管道中使用helm installer任务。它已经工作了一年多了。今天我突然看到下面的错误。

##[error]Error: Unable to locate executable file: 'helm'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

My yaml file:

- task: HelmInstaller@0
inputs:
helmVersion: ${{ parameters.helmVersion }}
installKubectl: true
checkLatestHelmVersion: false

有人遇到过这个问题吗?

来自任务的更多日志:

Downloading: https://api.github.com/repos/helm/helm/releases
(node:144) Warning: Use Cipheriv for counter mode of aes-256-ctr
Downloading: https://get.helm.sh/helm-v3.10.2-linux-amd64.zip
Extracting archive
/usr/bin/unzip /__w/_temp/helm-v3.10.2-f8239f1e-9c15-41c1-b7db-776e2cbaa057.zip
Archive:  /__w/_temp/helm-v3.10.2-f8239f1e-9c15-41c1-b7db-776e2cbaa057.zip
creating: linux-amd64/
inflating: linux-amd64/helm
inflating: linux-amd64/LICENSE
inflating: linux-amd64/README.md
Caching tool: helm 3.10.2 x64
Prepending PATH environment variable with directory: /__t/helm/3.10.2/x64/linux-amd64
Verifying helm installation...
##[error]Error: Unable to locate executable file: 'helm'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
Finishing: HelmInstaller

我也遇到过同样的问题。我们正在我们自己的代理上运行我们的管道,所以能够确认helm文件被正确下载。问题似乎是文件没有设置为可执行文件。

我已经在微软开发者社区(https://developercommunity.visualstudio.com/t/Helm-tool-installer-recently-started-fai/10221504?space=21&sort=newest)提出了一个问题,并将更新我收到的任何反馈。

作为一种解决方案,我发现使用HelmInstaller@1(以及KubectlInstaller@0在必要时)已经允许我让我的管道再次工作。

我们今天早上也遇到了同样的问题,我们使用HelmInstaller@1 Preview进行了修复,并且我们需要为Kubectl Tool Installer添加一个新任务。

这样我们的管道就固定了。

最新更新