Tenacious env vars

Assign the value of one environment variable to multiple others with the new set env var step.

Assign the value of one environment variable to multiple others with the new set env var step in your Workflow Editor.

You'll find this step useful if you want to "broadcast" env vars from one step to another or if different tools use different envs for the same thing, like ipa path.

For doing the same thing you can simply add a script step to your workflow, like this:

#!/usr/bin/env bash

set -e

echo "source_env_key: $source_env_key"
echo "source_env_value: $source_env_value"

echo "=> Mapping $source_env_key to $target_env_key"

set -x

echo -n "$source_env_value" | envman add --key "$target_env_key"
Copy code

However now it's just a drag and drop away! 🙂

Note: Step outputs are just regular Environment Variables

Step output aliases

There is a similar step that covers some of this functionality, but with step output aliases you can only specify one alias for that env var by setting value to the desired alias key and the cli will export the output with the given alias.

    - gradle-runner:
Copy code

With set env var you could copy the value into as many env vars as you like.

No items found.
The Mobile DevOps Newsletter

Explore more topics

App Development

Learn how to optimize your mobile app deployment processes for iOS, Android, Flutter, ReactNative, and more

Bitrise & Community

Check out the latest from Bitrise and the community. Learn about the upcoming mobile events, employee spotlights, women in tech, and more

Mobile App Releases

Learn how to release faster, better apps on the App Store, Google Play Store, Huawei AppGallery, and other app stores

Mobile DevOps

Learn Mobile DevOps best practices such as DevOps for iOS, Android, and industry-specific DevOps tips for mobile engineers

Mobile Testing & Security

Learn how to optimize mobile testing and security — from automated security checks to robust mobile testing and more.

Product Updates

Check out the latest product updates from Bitrise — Build Insights updates, product news, and more.

The Mobile DevOps Newsletter

Join 1000s of your peers. Sign up to receive Mobile DevOps tips, news, and best practice guides once every two weeks.