Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to prevent custom variable to be shown in the logs

Hello Everyone,

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.

pipelines: 
custom:
create_value:
-
variables:
- name: SECRET_VALUE
-
step:
script:
-
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:

Pipeline Variables:    
SECRET_VALUE: my_secret_word

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.

1 answer

1 accepted

0 votes
Answer accepted

Hi Jonathan,

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.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

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...

4,035 views 70 21
Read article

Community Events

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

Events near you