找不到Jenkins ecs命令 [英] Jenkins ecs Command not found
问题描述
我安装了第三方工具(使用pip install ecs-deploy
进行ECs部署).当我尝试在命令中使用命令ecs deploy demo-cluster demo-service
进行部署时,当我尝试使用jenkins进行部署时出现错误
I installed third party tool (ecs deploy using pip install ecs-deploy
) .When I try to deploy using command ecs deploy demo-cluster demo-service
in command prompt its working fine when I try with jenkins to deploy getting error
/tmp/jenkins5062380414579854312.sh: line 13: ecs: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
推荐答案
Jenkins服务通常在用户jenkins
下运行.
The Jenkins service runs typically runs under the user jenkins
.
您已将软件包安装为ec2-user
.这意味着jenkins
用户可能没有在其自己的路径中的包,或者没有执行该文件的正确权限.
You have installed the package as the ec2-user
. This means the jenkins
user may not have the package in its own path or have correct permissions to execute the file.
您可以通过以下两种方法之一对此进行更正:
You can correct this one of two ways:
- 使用
sudo
提升权限并将其全局安装.在/etc/environment
中设置路径
- 以
jenkins
用户身份交互式登录并以该帐户安装.
- Use
sudo
to elevate permissions and install it globally. Set the path in/etc/environment
- Interactively login as the
jenkins
user and install under that account.
这篇关于找不到Jenkins ecs命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!