Hello,
Is there a way to get variables from another stage ?
I need to get the BITRISE_BUILD_NUMBER
and BITRISE_PUBLIC_INSTALL_PAGE_URL
from my previous stage and I don’t know how to do it.
Thanks
Hello,
Is there a way to get variables from another stage ?
I need to get the BITRISE_BUILD_NUMBER
and BITRISE_PUBLIC_INSTALL_PAGE_URL
from my previous stage and I don’t know how to do it.
Thanks
Hello! Thank you for your feedback. This is not possible at the moment, but it is a highly requested feature so it’s on our radar.
We’ve worked around this in our project by adding script that exports variable value to file, shares the file using deploy-to-bitrise-io
step with pipeline_intermediate_stages
inputs and then pulls the file using pull-intermediate-files
step: Configuring a Bitrise Pipeline - Bitrise Docs
Thanks @mlewandowskipt. I was thinking about something like this if there was no proper solution.
This was going to be my recommended workaround! thank you for sharing this!
It seems they add a way to do it properly. I just saw this on the documentation: Sharing Env Vars between Pipeline Stages
Oh yes, this is the way now. I seem to have missed this thread to update it with the solution.