Warm tip: This article is reproduced from serverfault.com, please click

How to build Jenkins after each push in any branch?

发布于 2020-11-30 15:46:54

Is there any way to make Jenkins builds after each commit in any branch ? Because i found in my project's configuration that Jenkins run build only after detecting commits in specific branch or in the default ( eq to master in git ). PS: i'm using mercurial and Jenkins file. Should i change project type ( new item type in Jenkins ) or are there any modifications in configs.

Questioner
Med Bechir Said
Viewed
0
Med Bechir Said 2020-12-11 21:35:00

I got this solution and it worked for me. with Mercurial, we can use the "tip" keyword.The tip revision is the most recent changeset in the repository. It is the most recently changed head.