找不到Jenkins ecs命令 [英] Jenkins ecs Command not found

查看:142
本文介绍了找不到Jenkins ecs命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了第三方工具(使用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:

  1. 使用sudo提升权限并将其全局安装.在/etc/environment
  2. 中设置路径
  3. jenkins用户身份交互式登录并以该帐户安装.
  1. Use sudo to elevate permissions and install it globally. Set the path in /etc/environment
  2. Interactively login as the jenkins user and install under that account.

这篇关于找不到Jenkins ecs命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆