I don't know of any way to use Jenkins to monitor a git repository for changes without including a checkout of a local workspace.
Conceptually, I think you could write your own plugin which would rely on the git-client-plugin and perform the check for changes without creating a local workspace. GitClient.getHeadRev() is able to list the branches on a remote repository, so it should be possible. Mark Waite On Wed, Mar 26, 2014 at 9:25 PM, Vivekanand S V <[email protected]>wrote: > Try enabling "Poll SCM" option ? I never tried that though, I think that > checks for changes and then builds (only if there are any changes) > > > On Wed, Mar 26, 2014 at 11:04 PM, <[email protected]> wrote: > >> Hello- >> >> I want to monitor a git repository and run a script where then is a >> change. I've puzzled over it for a while now, and I cannot figure this out. >> If I use "Source Code Management" and fill out my particulars about my >> git repository, Jenkins tries to checkout the code into a local workspace. >> Is there any way to monitor a repository and act on it without this >> inherent checkout into a workspace? I'm sure there is a way to do it, but I >> don't see it in the interface. >> >> -Thanks! >> >> -- >> 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]. >> 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]. > For more options, visit https://groups.google.com/d/optout. > -- Thanks! 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
