Before posting this question I did try to setup this myself, I read How to override environment variables through the Build Trigger API & Build Trigger API - Bitrise DevCenter. I don’t think that Build Trigger API will solve my case or…I didn’t understand build trigger API and I’m missing something.
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.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.