Git plugin notifyCommit url = localhost does not match jobs

41 views
Skip to first unread message

Michael Giroux

unread,
Jul 22, 2016, 5:54:45 PM7/22/16
to Jenkins Users
I have configured Jenkins job to use git url: http://stash.server/scm/prj/repo.git

Our repositories reside in Stash, and using the Stash Webhook to Jenkins.  The default url for the notifyCommit is http://localhost/scm/prj/repo.git.  

== no jobs found

== triggers the job

For some reason, I have the impression that the git plugin would ignore the host name and port when processing notifyCommit messages.  Is this correct?


Michael

Mark Waite

unread,
Jul 22, 2016, 6:55:23 PM7/22/16
to Jenkins Users
As far as I know, the git plugin intentionally honors the hostname and port portion of the url parameter when processing notifyCommit messages.

It includes some heuristics that attempt to guess if two URL's are the same, and it applies those heuristics when comparing the URL defined in the job with the url parameter of the notifyCommit request.

Mark Waite

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cb78bb2b-1209-49b7-832a-e95f470a62fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Giroux

unread,
Jul 22, 2016, 10:06:31 PM7/22/16
to Jenkins Users
Yes, a quick review of the code seems to confirm that.  Thanks.
Reply all
Reply to author
Forward
0 new messages