I was wondering if it is possible to have a mixture of default and custom within one pipeline?
I can see that you can add custom variables however only require that for one step of the pipeline to allow for user input.
Currently I have:
On commit, deploy to test automatically. (Happy with that)
Then you have to trigger deployments to production manually via the run button. (Happy with that)
What I'd like:
When I click run for production, I want it to ask the user what version they'd like to push to production.
At the moment I can only see this option for the whole pipeline but would like to know if it can be done for only one step.
The example of custom variables can be found here
Again the link above applies to the whole pipeline which I do not want, only to a specific step within a pipeline.
Thanks in advance
Hi, @mabakr !
Let me ask a question to understand we are on the same page. I see, you want environment variable where you could say which version to deploy to production and apply this to only a part of a pipeline (not a part of pipe)?
Environment variables choice can be one of : repository variables and deployments( staging , production). For your case I guess, you want production deployment variable, so you can use that on production pipeline.
However, I guess, if you have some overlapping , deployment variable will override repository variable (following the doc https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html# )
Perhaps, we need more detailed request about what exactly situation you have, so we could fix this need.
Please could you clarify pipe? I assume it is each step within the pipeline for example
- Deploy to Test (Pipe)
- Deploy to Prod (Pipe) - Manual Trigger
If the above is correct, then on the manual trigger for 'Deploy to Prod' pipe I would like the user to input the version that they would like to deploy. I don't want this to be a pipeline variable, just a temporary variable input by the user at that moment in time.
@mabakr I got your point. As for the user prompt, right now you cannot use it for part of a pipeline. I guess, this is because pipeline on each of steps should be independent of others, otherwise it getting more complex and takes dependencies from other stuff.
To avoid this, I guess, the most proper solution currently is to write separate pipeline for deploying to prod and then you can configure this pipeline to run on schedule or by user prompt, like you want.
Answering on your question about a pipe. Pipe is the feature that can be used similarly to docker, can be a part of your pipeline step and can do different stuff depending on your requirements (aws, kubernetes, google cloud deploy, publishing packages to registries, etc. ). For all existing pipes you can explore this page https://bitbucket.org/product/features/pipelines/integrations. Perhaps you can get some advantages. But now I guess this does not relate to your question, so this is for future knowing. If you are interested more, you can contact Atlassian team in community, tagging a question with "pipes" or "pipe" tag
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events