使用通过 Docker 安装的 Jenkins 运行 AWS 命令​​行界面:找不到命令?

2024-02-16

跑步时aws从詹金斯管道我有以下错误消息:command not found - which aws回报command not found.

另一方面,跑步时aws从一项工作来看,它是有效的 -which aws回报/usr/local/bin/aws.

您知道为什么会发生这种情况吗?

谢谢。


您仍然需要在 docker 容器内安装 AWS CLI。

 # Swap to root user to install pip and aws cli then go back to jenkins user
USER root
RUN apt-get update
RUN apt install python3-pip -y
RUN pip3 install awscli --upgrade
USER jenkins

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用通过 Docker 安装的 Jenkins 运行 AWS 命令​​行界面:找不到命令? 的相关文章

随机推荐