I observed this problem too, but at the end I discovered that the output
doesn't come
from the git hook, but from the jenkis log, because I started for test
reasons the
jenkinsserver in the same terminal in background :-(
Are you sure that jenkins has been started as a demon or at least
detached from your console?
On 01/22/2013 12:38 AM, Adam Mercer wrote:
Hi
I'm using the git plugin and trying to write a post-receive hook to
trigger polling of the SCM to see if a new build should be triggered.
I'm using the following to get Jenkins to poll the SCM
/usr/bin/curl $JENKINS/git/notifyCommit?url=$REPO&branches=master
this seems to be working great, i.e. a new build is scheduled if
appropriate. However the post-receive hook outputs:
Scheduled polling of Project
I don't want this information displayed, I'd just like the polling to
be scheduled. If I run the curl command from the terminal prompt I
get:
$ curl $JENKINS/git/notifyCommit?url=$REPO&branches=master
[1] 38610
$ Scheduled polling of Project
[1]+ Done curl $JENKINS/git/notifyCommit?url=$REPO
$
I have been trying to suppress this output by appending "> /dev/null
2>&1" but hat still results in the output.
Is there a way I can suppress this output and just silently schedule a polling?
Cheers
Adam