Build Multi Azure DevOps Pull Request in Jenkins

一世执手 提交于 2021-02-10 14:21:09

问题


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

  1. Trigger generic build
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!