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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Custom pipe pointing to bitbucket repository

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.ymlfile you can:

  1. refer to the docker image directly  pipe: docker://acct/repo:tag (where acct/repo is the Dockerhub account and repo)
  2. refer to a pipe repo hosted on Bitbucket 
    pipe: <BB_acct>/repo:tag (where BB_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?

2 answers

1 accepted

0 votes
Answer accepted

@David Jones

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

@Galyna Zholtkevych 

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. 

@David Jones 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 :)

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
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