<html><head></head><body><div style="font-family: Verdana;font-size:
12.0px;"><div>Hello there,</div>
<div> </div>
<div>we use mod_dav_svn 1.8.14 with Apache 2.2.22 for our repositories.</div>
<div>For all repositories a post-commit-hook is installed which triggers jenkins builds.</div>
<div> </div>
<div>The script hasn't been changed for years, and the post commit hook script
works well most of the time.</div>
<div>But frequently after the apache-server is running a few days without restart, the
post commit hook-script won't be triggered any more.</div>
<div>Restarting the apache-process resolves the problem temporarily.</div>
<div> </div>
<div>The post-commit-hook script is placed outside the repos-directory and is owned
by the apache-User (with r-x-Rights). In all repositories a symbolic link is placed (the link
is also owned by the www-data-User):</div>
<div>
<div>hooks/post-commit -> ../../../svnhook_jenkins_notifyCommit.sh</div>
<div> </div>
<div>I suppose that the script isn't called any more, because the 'echo'
statement at line 5 doesn't lead to additional lines in the mentioned logfile.</div>
<div>Below you can find our post-commit-hook-script.</div>
<div>Is there a posibility to get additional logging information about hook-calling?</div>
<div>Any other ideas?</div>
<div>Thanksi in Advance.</div>
<div> </div>
<div>Rgds</div>
<div>Dieter</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>==== content of svnhook_jenkins_notifyCommit.sh:</div>
<div>
<div>#!/bin/sh<br/>
#<br/>
REPOS="$1"<br/>
REV="$2"</div>
<div>echo "Script run $(date) - $REPOS - $REV"
>> /tmp/svnhook_jenkins_notifyCommit.console.log</div>
<div>UUID=`svnlook uuid ${REPOS}`<br/>
HOST=jenkins.domain.com</div>
<div>/usr/bin/wget \<br/>
--header "Content-Type:text/plain;charset=UTF-8" \<br/>
--post-data "`svnlook changed --revision ${REV} ${REPOS}`"
\<br/>
--output-document "-" \<br/>
--timeout=2 \<br/>
--tries=3 \<br/>
--auth-no-challenge --http-user=itriggerbuilds --http-password=password \<br/>
--append-output=/tmp/svnhook_jenkins_notifyCommit.wget.log \<br/>
http://${HOST}/subversion/${UUID}/notifyCommit?rev=${REV}
2>&1 &</div>
<div> </div>
</div>
</div></div></body></html>
|