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
Sent from the
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': Permission denied
...
Stephan
--
View this message in context:
http