Reuse "changes" from a branch build in the default branch build after a fast-forward merge

If a feature branch and its commits are successfully built on a branch build, then that branch is fast-forward merged to the default branch, is it possible for a build of the default branch to reuse the build results from the feature branch build?

Currently, the build of the default branch post-merge is re-done. It would be nice if it would detect that the changes have already been built.

Thanks

0
2 comments
Hi Matt,

It's not possible. For a build to be considered suitable for re-use, it must be on the same branch or the default branch. You can find additional details about builds that can be considered suitable for re-use in the below article: 

https://www.jetbrains.com/help/teamcity/snapshot-dependencies.html#Suitable+Builds

There's a related feature request you can vote for: https://youtrack.jetbrains.com/issue/TW-40892/Allow-user-to-consider-a-build-as-suitable. 

As a workaround, you can use a similar approach the user describes in the feature request. The Conditional Build Steps and Conditional Dependencies features might also be helpful, depending on your setup. See the articles below for additional details:

https://www.jetbrains.com/help/teamcity/build-step-execution-conditions.html
https://www.jetbrains.com/help/teamcity/build-chain.html#Conditional+Build+Dependencies
0

Please sign in to leave a comment.