Hi,
I have been following the guide for creating custom pipes. In step 11 it says
There are 2 ways to refer to this pipe in other repositories. In your
bitbucket-pipelines.yml
file you can:
refer to the docker image directlypipe: docker://acct/repo:tag
(whereacct/repo
is the Dockerhub account and repo)
refer to a pipe repo hosted on Bitbucketpipe: <BB_acct>/repo
:tag
(whereBB_acct/repo
is your Bitbucket account and pipe repo)This version of the reference looks in your pipe.yml file to find out where to get the image from.
I have been trying to use option 2 but I keep getting the following error in my pipeline:
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.
I thought it was because my repository was private but making it public did not fix the issue. I ensured my pipe.yml file is in the root of the repository, but that didn't fix it either. Here is an example of how I am trying to call it:
- step:
script:
- pipe: my_account/my_repo:1.0
What could be causing the error that I am seeing? Does this only work with Atlassian hosted repositories?
@[deleted]
docker://your_account/repo:tag
should also work.
But let's define the root cause.
I see the version 1.0 , but it does not comply Step 10 in the doc or is it just an example?
Anyway check the git tag with the version, that you write in pipeline, exists in your repo.
If you made repo public , could you share it for a while? It will be simpler to define the failure reason
Or you can give me read permissions for repo, if it is still fine for you
Or you can provide more information, such as tags of your repo, docker image existing in hub.docker.com publicly
Regards, Galyna
Thanks for your reply.
It turns out I was being stupid, I forgot to move the tag on my repository so it was pointing to the wrong commit which didn't have the pipe.yml in the root directory. Once I moved the tag it started working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] It happens, glad if I could help you.
If you want , you can also made your pipe officially available for others (via our pipes page https://bitbucket.org/product/features/pipelines/integrations ) as it is written in the doc! We are happy to new contributors :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.