Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-24 Thread Adam Gabryś
I added a new comment to the PR with a proposed solution. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-24 Thread Adam Gabryś
"Suppress automatic SCM triggering" skips all builds executed by SCM change - indexing and hooks (events). Only jobs manually executed are built. See source code

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-24 Thread Adam Gabryś
@Liam Newman It is impossible to implement in a nice way a new strategy without changing the BranchBuildStrategy class. I have access only to stuff, which are listed there. I woul

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-19 Thread Adam Gabryś
There are two strategies for building PRs: 1) test PR before the merge operation - the same as building the source branch 2) test PR after the (virtual) merge operation - presents the state after merging We use a second strategy, because the source branch could work standalone, but break everyt

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-19 Thread Adam Gabryś
Thank you for you comments. Answers to all proposals and questions bellow: > what scm prilovider are you using? At this point we support only GitHub, but we may support different SCM in the future too. > I fixed this by adding the only build matching branches to be 'master Stable-* PR-*' > R

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-16 Thread Adam Gabryś
y to implement it in a way which will be approved by the maintainers. Kind regards Adam Gabryś -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-16 Thread Adam Gabryś
plement it in a way which will be approved by the maintainers. Kind regards Adam Gabryś From: jenkinsci-dev@googlegroups.com on behalf of Tony Noble Sent: Thursday, April 16, 2020 12:25 PM To: jenkinsci-dev@googlegroups.com Subject: Re: Prevent building branch

Prevent building branches/PRs existing before the first branch indexing (Branch API plugin)

2020-04-15 Thread Adam Gabryś
ckward compatible). - create a new build strategy (in new or existing plugin) SkipBuildOnBranchIndexing -- Let me know what do you think. Kind regards Adam Gabryś -- You received this message because you are subscribed to the Google Groups "Jenkins