Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step bundle inputs #1045

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Step bundle inputs #1045

wants to merge 6 commits into from

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Jan 24, 2025

Checklist

Version

Requires a MINOR version update

Context

This PR introduces inputs for Step Bundles.

Currently, Step Bundles can be configured with envs. The new inputs are meant to replace envs in the future to unify how different entities in bitrise.yml can be configured.

Step Bundle related analytics are under an update to contain information about the actual usage of Step Bundle envs, based on the data we either just remove envs from bitrise.yml or deprecate it in a later PR. For now inputs and envs live next to each other, but inputs have priority over envs (a Step Bundle input overrides a Step Bundle env with the same key).

The only difference between inputs and envs is that inputs need to be defined on the step bundle, to be able to step value when used in a workflow.

@@ -85,7 +85,6 @@ func (r WorkflowRunner) activateAndRunSteps(

// Global variables for restricting Step Bundle's environment variables for the given Step Bundle
currentStepBundleUUID := ""
// TODO: add the last step bundle's envs to environments
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seemed obsolete, we even have a test case to check if the last step bundle's output env vars are available: https://github.com/bitrise-io/bitrise/blob/master/cli/run_test.go#L708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant