Branch checking time GIT and jenkins

0

Good afternoon everyone.

I've built an integration between GIT and Jenkins so that builds run with publishing parameters on application servers.

Then I set up the GIT plugin the project path and in Branch Specifier (blank for 'any') the branch master and in 'Query Periodically the SCM' set to do the changes check one in a minute.

Is there a way to make builds only generated with GIT project changes, that is, when the dev should change and commit? So, remove this SCM branch check from minute to minute?

    
asked by anonymous 14.08.2018 / 21:59

1 answer

0

You can configure your git server webhook so that every push is triggered for your jenkins a request for it to be able to execute the task, detail if you are using your jenkins localhost you have to use some mechanism to expose your ip to be able to receive the webhook request through a tunnel in the case I used link

    
20.09.2018 / 18:47