|
|
|
[
Permlink
| « Hide
]
Robin Shen [15/Nov/18 11:57 PM]
The first build after changing the repository type might fail. How about triggering the build again? Is it failing all the time?
Do you have logic deleting the triggered/triggering build? This normally happens when a build is deleted soon after it is triggered.
Are you able to reproduce this issue with a sample setup?
Hello Robin.
I tested it on other builds and here is what I noticed: - If I have option "Build Open Pull Requests" ENABLED - it fails - If I have option "Build Open Pull Requests" DISABLED - it is working fine (external builds are triggered) - If I won't trigger external build it works fine (with "Build Open Pull Requests" ENABLED) I am trying to reproduce your scenario, and it works fine. Here is what I am doing:
1. Create a test configuration "root/test", with two children "root/test/child1" and "root/test/child2" 2. Define a BitBucket server repository in "root/test" with build open pull request option enabled 3. Create a checkout step in "root/test" to checkout the repository 4. Add a step of type "trigger other builds" in "root/test" with "configuration path" specified as ${params.get("child")}, and define a repeat param with name "child", and value "root/test/child1, root/test/child2" 5. Edit master step of "root/test/child1" and "root/test/child2" to do simple things such as echo a message Now if I run the "root/test" configuration, all open pull requests are built and the child configurations are triggered fine. Do you have any specific logic in your build definition? Robin,
I think I found problem: I have checkout (the same) repository in all builds that are triggered and inherited repository setup. So simple configuration to reproduce my problem is: 1. Create a test configuration "root/test", with two children "root/test/child1" and "root/test/child2" 2. Define a BitBucket server repository in "root/test" with build open pull request option enabled (make sure it is inherited by children) 3. Create checkout step in ALL configs ( "root/test", "root/test/child1", "root/test/child2") 4. Create Parallel step to run external builds in parallel. 5. Create trigger other builds and execute "root/test/child1" and "root/test/child2" If I disable build open pull request option on children, it works fine. Is this correct behaviour? However I have one more additional question regards BitBucket integration: If I make fork of my repository, make change on it and then create Pull Request back to my repository, QB can see it (build is triggered) but it is building master branch on my repository (without my changes). Is this correct behaviour? Yes I can reproduce this issue if triggered build also builds against pull requests. Also if pull request is created between two different repositories, it will build target branch of target repository. We will investigate and try to fix these two issues in QB9.
PS: the bitbucket server plugin is contributed by other customers, and it may lack some features...
|