Hi Atlassian Community
My team and myself have a use case where we want to share information between different pipelines while they are running. The successful execution of our integration tests is dependant on this information sharing.
We went quite far with how we wanted to implement the information sharing. The mechanism we thought would work is by sharing information between pipelines by using the BITBUCKET_PIPE_SHARED_STORAGE_DIR described here: https://support.atlassian.com/bitbucket-cloud/docs/advanced-techniques-for-writing-pipes/. We moved the integration tests to a custom pipe, described here: https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/, in order to gain access to the BITBUCKET_PIPE_SHARED_STORAGE_DIR.
We were naive as to how this machanism would work. We discovered that the information sharing can only happen between two pipes running within the same pipeline. Not pipes running in different pipelines.
Our current best way forward is to set up an external service where we can post to and read from to share information between pipelines.
Is there a better way that we can do this from a mechanism in BitBucket?
Cheers