我有一个问题,当我构建我的工作时,它无法将我的文件放在控制台输出的服务器目录中我得到消息“错误:发布时异常,异常消息[权限被拒绝]”
我有以下日志输出:
SSH: Connecting from host [rp_ci]
SSH: Connecting with configuration [web-dev] ...
SSH: Creating session: username [ubuntu],hostname [xx.xx.xx.xxx],port [22]
SSH: Connecting session ...
SSH: Connected
SSH: opening SFTP channel ...
SSH: SFTP channel open
SSH: Connecting SFTP channel ...
SSH: Connected
SSH: Remote root is not absolute,getting absolute directory from PWD
SSH: cd [/home/ubuntu]
SSH: OK
SSH: cd [deploy/]
SSH: OK
SSH: put [dev-xx-xx.tgz]
SSH: Disconnecting configuration [web-dev] ...
ERROR: Exception when publishing,exception message [Permission denied]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE
对于目标服务器我使用Nginx在AWS EC2上使用ubuntu服务器.
有人知道如何解决这个问题吗?我没有在网上找到任何线索.
谢谢!
最佳答案
放入dev-xx-xx.tgz时权限被拒绝.所以检查文件的权限设置:/home/Ubuntu/deploy/dev-xx-xx.tgz