They all have 2775 permissions: drwxrwsr-x 4 root www-data 4.0K Apr 29 16:17 .hg drwxrwsr-x 4 root www-data 4.0K Apr 29 15:34 store
as 775 is set group writing should be permitted, and jenkins user should be able to write as hi is in www-data group: su jenkins groups nogroup www-data On Tue, Apr 29, 2014 at 4:23 PM, 'Kamal Ahmed' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Look at your .hg's for permissions > > After hg init .hg and .hg/store have 755 permission, so if you're not > the owner of the repository, you won't be able to write there. You can > read, but not write. > > hope this helps > On Tuesday, April 29, 2014 8:51 AM, Justinas Urbanavicius < > justin...@gmail.com> wrote: > > 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. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/vL6rwy_ln3g/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Justinas -- 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.