On Thu, Apr 5, 2012 at 7:33 AM, nexenator wrote:
> Thanks i tried that before but that didn't work either.
>
> I have a solution now using sudo - but that's kind of suboptimal
What did you try? Are you saying that you can log in as, or su to
the jenkins user and write to this directory but it f
optimal
>
> --
> View this message in context:
> http://jenkins.361315.n4.nabble.com/Post-build-task-permission-denied-in-shell-script-when-cp-directories-tp4534479p4534689.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>
Thanks i tried that before but that didn't work either.
I have a solution now using sudo - but that's kind of suboptimal
--
View this message in context:
http://jenkins.361315.n4.nabble.com/Post-build-task-permission-denied-in-shell-script-when-cp-directories-tp4534479p4534689.html
On Thu, Apr 5, 2012 at 5:52 AM, nexenator wrote:
> This is what the script looks like:
>
> #!/bin/bash
> cp -r -p -u /var/lib/jenkins/jobs/-project-name-/workspace/somedir/*
> /destination-path/somedir
> ...
>
> The console output is as follows:
> ...
> cp: accessing `destination-path/somedir': Pe
ntext:
http://jenkins.361315.n4.nabble.com/Post-build-task-permission-denied-in-shell-script-when-cp-directories-tp4534479p4534486.html
Sent from the Jenkins users mailing list archive at Nabble.com.