When providing an image for example like this:
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.
(pulling this image locally works without any problems)
But using something like:
Hey @Mees Kluivers ,
and welcome to the Community!
Using digests in the pipe image definition is actually possible, but the syntax is slightly different from what you shared in your description.
When defining a custom docker image as a pipe, you need to prepend it with docker://:
pipe: docker://<DockerAccountName>/<ImageName>:<version>@<sha256>
Essentially, every pipe is a Docker container with an entry point script that contains the logic.
Following is an example of how it would look like using the sonarqube scan image you mentioned:
- step:
name: Test pipe
script:
- echo "Test"
- pipe: docker://sonarsource/sonarqube-scan:2.0.1@sha256:f559720fcbb3bc355b9599666525c3ad80d6b6ab25ecd53aabb029aa583139a7
variables:
- <PIPE VARIABLES>
Reference: Custom pipes
I hope that helps! Should you have any questions, feel free to ask.
Thank you, @Mees Kluivers !
Patrik S
Thanks! I guess the docs are not clear enough about this.
Following this logic, would both definitions not be 'custom' pipes? Why should it work without prefixing it with 'docker://' without a hash, but won't it work when adding the hash?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.