I want to be able to set the version of a pipe in use across multiple repos, by using a workspace variable.
Specifying a branch name for the pipe isn't desirable, I'd like to specify a specific version of the pipe across the multiple repos.
E.g.
image: node:16-alpine
definitions:
steps:
- step: &build-and-test
name: Build and test
caches:
- node
script:
- npm install
- npm test
- npm run build
- pipe: snyk/snyk-scan:$SYNK_VERSION
Is this possible some other way? When I try the above the following error is shown:
It looks like you tried to use a pipe in your bitbucket-pipelines.yml that doesn’t exist. Check the name of the pipe and try again.
Hi Drew,
I'm afraid that this is not possible at the moment, we don't support variables in a pipe's name.
We have a feature request that you vote for to further express your interest:
You can also add yourself as a watcher to that feature request (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
Kind regards,
Theodora
Thanks for the information.
That is disappointing, hopefully this can be fixed soon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Here is an article and a video with a working example of how this can be achieved using Dynamic Pipelines and a Forge app.
The example shows how to replace the variable in an image name, but it can also be used as-is to substitute pipe names.
Hope this helps,
Caterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.
Join the webinar ✨Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.