Bitbucket pipelines give us the opportunity to create custom pipelines, in these we create some variables that will receive values entered manually by the user.
- name: SECRET_VALUE
- echo ok
This is cool. You can create a custom step that will be triggered by the user (via Run Pipeline button)and the value for the var SECRET_VALUE will then be provided by the user.
But there's a catch, the value of the variable will be printed in the logs:
There's any way to avoid this? I mean, to suppress the variable to be printed.
ps. The values will always vary, so the "secured variables" in the "repository variables" is out of topic here.
I'm afraid that it is not possible to hide the value of custom pipeline variables at the moment.
We have a feature request about this in our issue tracker:
If you'd be interested in this, I would suggest that you add your vote in the feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
Implementation of new features is done as per our policy here and any updates will be posted in the feature request.
Please feel free to let me know if you have any questions.
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
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