Here is the case:
I have two build variants of the same app (ex: one with main white color and one with main black color). After the push to the branch, Bitrise trigger first build with Bitrise build number №1 (main white color). At the end of this build, I have a step to trigger another build (main black color). Two builds share the same versionCode and branch state (same code but different colors). But Bitrise already incremented build number for second build so now it is Bitrise build number №2 (main black color).
My question is:
Can I make Bitrise build number the same for two different workflow builds that go one by another?
I see here such possible solutions:
- In one of the steps of second build workflow (black color) manually set environment variable of Bitrise build number to one I need. (As my question above - take value from versionCode and put it in build number)
- Manually cancel Bitrise build number increment so both builds have the same one. And then enable it for next builds.
- Cache build number from the first build and use it in second (anyway need to manually set Bitrise build number environment variable from one of the steps).
Can you help me with it?
Thanks in advance.