詹金斯(Jenkins)找不到Azure CLI

发布于 2025-01-19 10:47:01 字数 705 浏览 3 评论 0原文

我在 jenkins 中安装了 azure cli 插件,之后我设置了 Azure 服务主体并获得成功验证了 Microsoft Azure 服务主体,之后我创建了一个新作业并将 az 版本添加到检查 az 是否已安装,并出现失败错误,下面是该错误的屏幕截图

注意:- 我的 Jenkins 具有 v2.332.1 并作为 Helm 聊天安装在 AKS 集群中,我的 jenkins 正在运行

在此处输入图像描述

这是插件安装后的截图 输入图片这里的描述

这是我在 freestylejob 中新创建的工作 输入图片此处描述

请帮助解决此问题

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

enter image description here

Here is the screenshot of plugin installed
enter image description here

Here is the my job new create in freestylejob
enter image description here

Please help out with this issue

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暮光沉寂 2025-01-26 10:47:01

您还需要在 Jenkins 主机中安装 azure cli。


https://plugins.jenkins.io/azure-cli/ - 先决条件

要使用此插件,首先您需要有一个 Azure 服务主体
在您的 Jenkins 实例中。

1.通过 Azure CLI 或 Azure 门户创建 Azure 服务主体。

2.打开 Jenkins 仪表板,转到“凭据”,使用您刚刚创建的凭据信息添加新的 Microsoft Azure 服务主体。

3.在 Jenkins 主机中安装 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

To use this plugin, first you need to have an Azure Service Principal
in your Jenkins instance.

1.Create an Azure Service Principal through Azure CLI or Azure portal.

2.Open Jenkins dashboard, go to Credentials, add a new Microsoft Azure Service Principal with the credential information you just created.

3.Install Azure CLI in the Jenkins Host

from your description, I can see you have 1,2 steps completed and possibly 3 is missing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文