Setup
I use a combination of bitrise.yml & Fastfile to run my builds. In terms of Bitrise setup, almost everything is configured via bitrise.yml. So, at the beginning of a file I have
app:
envs:
- BITRISE_SCHEME: iOS_target_1
Before I continue it’s worth mentioning that in project I have four different targets configured (iOS_target_1, iOS_target_2, etc…). Until now I released one target at once but now I would like to setup nightly builds. So that during day current target is building (iOS_target_1) but at the end of a day, all other apps are build by Bitrise (iOS_target_2, iOS_target_3, etc).
I tried with removing BITRISE_SCHEME from bitrise.yml and adding it to $Env Vars tab in Workflow settings. I thought that by adding BITRISE_SCHEME: iOS_target_2 in Custom Environment Variables(optional) when starting/scheduling a build, iOS_target_2 will be executed but no luck. Still, target provided in $Env Vars is executed.
I would like to avoid invoking curls on my side, I would like to use Bitrise’s scheduling system for that. However, I have no idea how to configure it to override env var specified in web panel.
and because of that, global BITRISE_SCHEME is overridden. Then you need to set up workflow in Bitrise web panel to run bitrise run build-fabric-nightly-iOS_target_2 and everything works great!