I have a Master only server on Linux debian, 
it clones a local mercurial repository and then after the build jenkins 
tags version as "qa"
with command:
hg tag -f qa
and should push the changes to the same local repository, but after 
executing 
hg push -f 
it fails with error permission denied:

[workspace] $ /bin/sh -xe /tmp/hudson4453977963147108156.sh
+ hg tag -f -u jenkins qa
+ hg push -f
pushing to /home/hg/ituvs
abort: could not lock repository /home/hg/ituvs: Permission denied

jenkins executes sh script under jenkins user, i'v given 2775 permission to 
/home/hg/ituvs:
drwxrwsr-x 3 root www-data 4096 Oct 17  2013 ituvs

and added jenkins to group www-data but it still failes to push.
if i change to user jenkins myself and execute these command everyting works 
fine:
su jenkins
hg tag -f -u jenkins qa
hg push -f
pushing to /home/hg/ituvs
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 1 files

can't seem to figure this out, any help would be appreciated



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to