How do I build on specific commit in Git on Jenkins? How do I build on specific commit in Git on Jenkins? jenkins jenkins

How do I build on specific commit in Git on Jenkins?


  1. Jenkins Git plugin should be
  2. Copy your commit hash and paste it into "Branch Specifier"

enter image description hereThen Run "Build now"


Well I think instead of hacking the build config to point to a specific commit hash, it would be better to just create a new branch, that points to the commit you want to build. If you have a correctly configured Multibranch Pipeline Build, Jenkins should discover and build your commit/branch automatically.

Alternatively you could also use a tag instead of a branch. But in this case you need to add the "Discover tags" Behaviour to your Branch Source Config.

Branch Source Behaviours