If you're using command line git, you might try /D/Repositories/Project.

That syntax may work on the same machine which hosts the repository.  That
won't work for an agent running on a different machine, or a Jenkins server
hosted on a different machine.

If you need to use agents which are not the same machine as is hosting the
repository, you'll need a protocol that can be used across the network.  If
you need to use agents which are not Windows, then you'll need a network
aware protocol (like http, https, or ssh).

If you host your git repository on Windows, you should plan on exploring
interesting territory that others do not commonly explore.  Most git
repositories are hosted on Linux and other Unix-like operating systems
(MacOS, FreeBSD, Solaris, OpenBSD, NetBSD, HP-UX, etc.) much more
frequently than they are hosted on Windows. Windows Jenkins jobs are
generally slower than Linux Jenkins jobs, especially for git operations.  I
don't know if that is due to virus scanning overhead, or some other form of
overhead, but even with git's file system caching enabled, my test jobs
still take longer on Windows than on comparable Linux machines.

On Fri, Aug 12, 2016 at 1:41 PM John Thornborrow <[email protected]>
wrote:

> Hi!
>
> Build(s) configured with repo:
>
> D:/Repositories/Project
>
> post-commit hook configured with:
>
> curl http://server/git/notifyCommit?url=D:/Repositories/Project
>
> Always returns: "No GIT consumers using SCM API plugin for:
> D:/Repositories/Project"
>
> Job definitely has SCM Poll checked.
>
> Any clues? I've tried using file:///D:/Repositories/Project and other
> logical variants (always ensuring both the url=$REPO matches the config
> value *exactly*) but to no avail.
>
> Many thanks,
> John
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d6be236e-b904-461e-8060-c57cd4246b36%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d6be236e-b904-461e-8060-c57cd4246b36%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtF%2BXdA%3D6bi_tMEYirwvLa-EQ59%2BxTWUcFLxKknUfYt9Nw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to