我有一个问题,当我build立我的工作,它不能把我的文件在控制台输出服务器目录我得到的消息“错误:发布exception,exception消息[权限被拒绝]”
我有以下日志输出:
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服务器的目标服务器。
有人知道如何解决这个问题? 我在网上找不到任何线索。 谢谢!
当put dev-xx-xx.tgz被拒绝时,权限被拒绝。 所以检查文件的权限设置: /home/Ubuntu/deploy/dev-xx-xx.tgz