问题
My git repository is Azure Dev-Ops and use Jenkins for continuous integration build and I use tfs Plugin for Jenkins.
My code has 6 branches:
master, test1, test2, test3, test4, test5
When i want pull request test1 to master
(for example pull request number is 100) and test5 to test4
(for example pull request number is 101) Jenkins only build pull request for number 100 don't build pull request number 101.
after several time when i want build for pull request test3 to test2
(for example pull request number is 102) Jenkins again build for pull request number 100.
I don't know What's problem.
回答1:
I Understood in Service hooks Azure Dev-ops for Jenkins service we have 2 trigger that are
- Trigger generic build
- Trigger Git Build
unfortunately in official document for tfs https://github.com/jenkinsci/tfs-plugin
don't say that Trigger generic build
use for when we have only a branch and Trigger Git Build
use for when we have multi branch on pipeline Jenkins.
So I change my trigger from Trigger generic build
to Trigger Git Build
来源:https://stackoverflow.com/questions/64641090/build-multi-azure-devops-pull-request-in-jenkins