Re: trigger Jenkins build on git commit without using hook

2017-11-30 Thread 'Pulkit Lall' via Jenkins Users
I am able to trigger Jenkins job using git commit hook and now want to trigger Jenkins job with git commit for specific branch. e.g. In my multi-configuration job, we have repo, branch, version, etc parameters. Is there a way, we can trigger Jenkins job on git commit and supply the parameters t

Re: trigger Jenkins build on git commit without using hook

2017-11-26 Thread 'Pulkit Lall' via Jenkins Users
Hi Mark, Thank you for replying. I am not against not using "hooks" but I do not want to update git repo and thus thought if there is a way to trigger Jenkins build on git commit without using hooks. If there is no alternative then I will have to use git hooks. Pulkit Lall On Monday, 27 Novemb

Re: trigger Jenkins build on git commit without using hook

2017-11-26 Thread Mark Waite
Can you explain why you don't want to use "hooks"? Is your objection to webhooks (as used by github, bitbucket, gitea and others) or to repository hook scripts (like post-receive)? The "polling must die" blog post from Kohsuke explains why the /git/notifyCommit technique is better than polling.

Re: trigger Jenkins build on git commit without using hook

2017-11-26 Thread 'Pulkit Lall' via Jenkins Users
Also would not like to use time in polling (Sorry, forgot to add in original post) On Monday, 27 November 2017 09:53:48 UTC+5:30, Pulkit Lall wrote: > > Hi, > We have a internal enterprise git repo (not github) which has many > branches. I want Jenkins to trigger a build once checkin is made to

trigger Jenkins build on git commit without using hook

2017-11-26 Thread 'Pulkit Lall' via Jenkins Users
Hi, We have a internal enterprise git repo (not github) which has many branches. I want Jenkins to trigger a build once checkin is made to git repo but I do not want to use git hooks. I would like to know if there is any other way to trigger Jenkins build on git commit without using hooks. TIA