I set up the Github webhook in Jenkins and I created a job with the following configuration:
However, every time I push something from any branch, the job build a new version (using the branch which I specified).
I set up the job by reading some related questions on Stackoverflow but all those questions are quite old and without a clear solution:
GitHub WebHooks triggered globally instead of per branch
Trigger Jenkins job on GitHub PUSH to specific branch
Is it possible to trigger Push only from a specific branch?