[BitBucket Branch Source Plugin] Massive PR rebuild

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[BitBucket Branch Source Plugin] Massive PR rebuild

Dan Tran

Hi

We are using BitBucket branch source plugin in combination with withMaven from pipeline-maven-plugin.  Around 2 PM,  an unknown timer kicks off and rescan, forcing all existing PRs to rebuild. The manual scan does not see this issue

Configuration: Latest Jenkins LTS and plugins:

 Filter by name (with wildcards)  include: *
  * Discover branches: all branches
  * Discover pull requests from origin: Merging the pull request with the current target branch revision
  * Filter by name including PRs destined for this branch (with wildcards): master release/*
  * Checkout over SSH
  * Override hook management: Use item credentials for hook management

Scan Organization Folder Triggers

  * Periodically if not otherwise run: interval - 1 day  
  * Build whenever a SNAPSHOT dependency is built: check

Any advice is greatly appreciated

-D

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4e660694-0481-42d7-8cc6-2a76212631a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [BitBucket Branch Source Plugin] Massive PR rebuild

Steven Foster
It might be rebuilding because the daily repo scan sees that the target branch has been changed (e.g. master). I'm not sure why the manual scan wouldn't see this, too.

I'm using github branch source and had this issue, so it might be different in bitbucket but the repo scan log should mention something when this happens. It might say something about the current PR commit being unchanged, but the target branch commit changed.

The https://github.com/jenkinsci/basic-branch-build-strategies-plugin lets you disable building PRs when only the target branch has changed which is what I used.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/26cef966-9ffd-4b9f-828b-dc6ffa1d3c89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [BitBucket Branch Source Plugin] Massive PR rebuild

Dan Tran
Awesome will try it out

Thanks

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c1f3c1cf-e5c1-42c3-95f9-8538b01e7394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [BitBucket Branch Source Plugin] Massive PR rebuild

Dan Tran

I added 'build strategies'

    * Change requests

        Ignore rebuilding merge branches when only the target branch changed = check

    * Named branches
        Wildcard include/excludes: master

Without the second one, no build trigger at direct commit to master and PR merge into master

Sofar it seems to work.  

Thanks

-D 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a12760d8-7650-440a-865b-b957fb23c09b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.