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

Bitbucket Pipelines: Using variable with pipe command

Hi, I use the Git Secrets Scan in all my pipelines using the hard coded command:

- pipe: atlassian/git-secrets-scan:x.y.z.

This requires me to update each pipeline a new version of Git Secrets Scan is released. Is there a way to pass the docker image or pipe command using a variable:

Workspace Variable: GIT_SECRETS_SCAN = atlassian/git-secrets-scan:x.y.x


Workspace Variable: GIT_SECRETS_SCAN = pipe: atlassian/git-secrets-scan:x.y.z



1 answer

0 votes
Caroline R Atlassian Team Sep 20, 2021

Hi, @glenn_comiskey!

Thank you for reaching out to Atlassian Community!

Currently, Bitbucket Pipelines doesn't support variables for the Pipe name in the bitbucket-pipelines.yml file. However, we already have a feature request to add this option as you can see here:

Implementation of new features is done as per our policy here and any updates will be posted in the feature request. 

I would suggest that you add your vote there (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.

Feel free to share any additional questions or concerns regarding this case.

Kind regards,

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,438 views 4 7
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