詹金斯(Jenkins)找不到Azure CLI
我在 jenkins 中安装了 azure cli 插件,之后我设置了 Azure 服务主体并获得成功验证了 Microsoft Azure 服务主体,之后我创建了一个新作业并将 az 版本添加到检查 az 是否已安装,并出现失败错误,下面是该错误的屏幕截图
注意:- 我的 Jenkins 具有 v2.332.1 并作为 Helm 聊天安装在 AKS 集群中,我的 jenkins 正在运行
请帮助解决此问题
I have install azure cli plugins in jenkins after that i setup Azure Service Principal and got Successfully verified the Microsoft Azure Service Principal after that i create a new job and added az version to check az is installed or not in it and got failed error below is the screenshot of that error
Note:- My Jenkins is having v2.332.1 and installed in AKS Cluster as a Helm chat my jenkins is running
Here is the screenshot of plugin installed
Here is the my job new create in freestylejob
Please help out with this issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还需要在 Jenkins 主机中安装 azure cli。
从
https://plugins.jenkins.io/azure-cli/ - 先决条件
,我可以看到您已完成 1,2 个步骤,可能缺少 3 个步骤。
You need to install azure cli in the Jenkins Host as well.
from
https://plugins.jenkins.io/azure-cli/ - Prerequisites
from your description, I can see you have 1,2 steps completed and possibly 3 is missing.