# For MultiBranch pipeline, why PR sometime is triggerred by "pull request", and sometimes it is triggerred by "branch indexing"

**URL:** <https://community.jenkins.io/t/for-multibranch-pipeline-why-pr-sometime-is-triggerred-by-pull-request-and-sometimes-it-is-triggerred-by-branch-indexing/3211>\
**Category:** Ask a question\
**Created:** [July 30, 2022, 7:35am UTC](https://community.jenkins.io/t/for-multibranch-pipeline-why-pr-sometime-is-triggerred-by-pull-request-and-sometimes-it-is-triggerred-by-branch-indexing/3211 "2022-07-30T07:35:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neillilei](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/neillilei/32/1951_2.png) [@neillilei](https://community.jenkins.io/u/neillilei)\
**Post date:** [July 30, 2022, 7:35am UTC](https://community.jenkins.io/t/for-multibranch-pipeline-why-pr-sometime-is-triggerred-by-pull-request-and-sometimes-it-is-triggerred-by-branch-indexing/3211/1 "2022-07-30T07:35:34Z")

</div>

My checkout repo will failed when branch indexing event trigger the Pull Request CI, and succeed when pull request event triggerr the Pull Request. that is very strange, how can I configure to make the Pull Request triggerred just by pull request.

The details info can be found from [[JENKINS-69178] multiBranch pipeline failed with PR code checkout by GitScm - Jenkins Jira](https://issues.jenkins.io/browse/JENKINS-69178)

if anyone kow the reason and please kindly share with me, thanks & regards.

---

<div class="post-metadata">

**Author:** ![neillilei](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/neillilei/32/1951_2.png) [@neillilei](https://community.jenkins.io/u/neillilei)\
**Post date:** [August 1, 2022, 4:49am UTC](https://community.jenkins.io/t/for-multibranch-pipeline-why-pr-sometime-is-triggerred-by-pull-request-and-sometimes-it-is-triggerred-by-branch-indexing/3211/2 "2022-08-01T04:49:18Z")

</div>

resolved, close this ticket topic

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [August 8, 2022, 7:31am UTC](https://community.jenkins.io/t/for-multibranch-pipeline-why-pr-sometime-is-triggerred-by-pull-request-and-sometimes-it-is-triggerred-by-branch-indexing/3211/3 "2022-08-08T07:31:45Z")

</div>

Good to know.  
Could you please let us know what the solution to your problem was?  
Thanks.
