0

I am trying to install Jenkins to achieve a Github -> EC2 instance folder pipeline. So far everything works well when I target an empty folder... however, when I target my production folder owned by www-data the SSH copy of the files fail for permission, as Jenkins uses the ubuntu user, the only one I have an SSH login for.

How do I solve this issue?

3
  • Have you tried running the command as another user? (sudo -u)
    – Preston Martin
    Mar 27 '18 at 19:46
  • Where am I given a chance to issue a command? the SSH is a plug-in to Jenkins, is it not?
    – JasonGenX
    Mar 27 '18 at 19:59
  • I did not know that you were using the Jenkins SSH plugin.
    – Preston Martin
    Mar 27 '18 at 20:01
0

The ssh plugin gives you both options, Either send build artifacts to remote server or run a command on the remote server. The name of the plugin is "send build artifacts over ssh".. use that

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.