0
votes

My git repository is Azure DevOps and uses Jenkins for continuous integration build and I use TFS Plugin for Jenkins.

For example I have 50 branches, most of them have a different Jenkins file. While I request pull on Azure DevOps, I want to be able to choose the Jenkins file of source branch or target branch.

How can I do that?

2
It's unclear what exactly you're trying to do. If you have 50 branches, and try to build one of them, why would you want to use a different Jenkinsfile than the one in that exact branch?MaratC

2 Answers

1
votes

I want to be able to choose the Jenkins file of source branch or target branch.

You could select the Pull request merge attempted in the type of Trigger event:

enter image description here

Which have an optional Target branch. We could select the target branch for the Azure devops Azure DevOps.

0
votes

Thank You for your Responses but I Understood IT's related to Developer role that should update his Jenkins file on his branch Of course I Understood something is related to kind of Trigger https://stackguides.com/questions/64641090/build-multi-azure-devops-pull-request-in-jenkins