Support setting environment variable when pipeline or step is triggered

Issue #16483 open
Thomas Raehalme created an issue

At the moment environment variables for Bitbucket Pipelines are predefined in the repository and team configuration.

I'd like to propose adding support for prompting predefined environment variables from the end-user when starting a pipeline or a manual step inside a pipeline. In addition it would be really useful to be able to validate the values using a regular expression.

My use-case for this functionality is performing a bugfix release where the user is prompted for the to-be-released and next version numbers before the release is started.

Comments (5)

  1. Aneita Yang
    • changed status to open

    Thanks for reaching out, @aitiofinland. This is an interesting suggestion.

    No plans to work on this any time in the near future. In the meantime, I'll open this issue to gauge the interest of other users in seeing this feature.

  2. Thomas Raehalme reporter

    Just to be clear, for us the most important part is "when starting ... a manual step" as we start the pipeline automatically but wait for a manual confirmation on performing a release which is where it would be useful to be able to prompt for the version number.

  3. Log in to comment