Re: Post build task permission denied in shell script when cp directories

2012-04-05 Thread Les Mikesell
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

Re: Post build task permission denied in shell script when cp directories

2012-04-05 Thread Gábor Garami
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. >

Re: Post build task permission denied in shell script when cp directories

2012-04-05 Thread nexenator
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

Re: Post build task permission denied in shell script when cp directories

2012-04-05 Thread Les Mikesell
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

Re: Post build task permission denied in shell script when cp directories

2012-04-05 Thread nexenator
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.