having problems with permission's when pushing please advise
Eric Siegerman
pub08-hg at davor.org
Tue Apr 29 19:37:10 UTC 2014
On 04/29/2014 09:15 AM, Justinas Urbanavicius wrote:
> jenkins executes sh script under jenkins user, i'v given 2775
permission to /home/hg/ituvs recursively:
> [...]
> and added jenkins to group www-data but it still failes to push.
> if i change to user jenkins myself and execute these command
everything works fine:
Did you restart Jenkins, to pick up the new group membership? Don't
forget that changes to /etc/passwd or /etc/group don't affect
preexisting processes, login sessions, etc.
(If Jenkins is running as your distro's idea of a service, e.g. from
/etc/rcN.d, restarting the service should be all that's needed; but if
it gets launched from an interactive session, you'll have to log that
out and back in too.)
If that isn't it, you can put an id(1) command before the "hg pull" in
the Jenkins job's configuration, to show you what credentials are
actually in use.
And failing *that*, try changing the command to "strace -f [-o
/tmp//some-file/] hg pull", then dig through the output to see *exactly*
what went wrong. (Include the "-o /tmp//some-file/" if you want to
redirect the trace output, instead of having it jumbled with hg's own
output in the Jenkins job's log).
- Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140429/d005a86e/attachment-0002.html>
More information about the Mercurial
mailing list