Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket tagging via API

Andrea Martinello
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2018

Hey,

it seems as of today the handling of Bittbucket tabs via API it is still undoable.

 

Managing tag it is very importan in a CD/CI context. A 

 

Is there any feature request open ? 

As anyone found a solution ? 

 

My only workaround to achieve this is is via manual script. 

It would be awesome to be able to write a push-now! button and fire a full realese of a branch + tag

 

Andrea

 

2 answers

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2018

Hi Andrea, welcome to the Community!

What would you like to achieve? You can both get and post tags by using the API, for more information you can check https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/refs/tags.

Would that suit your needs?

Kind regards,

Ana

Andrea Martinello
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2018

Many thanks Ana, I was cofused where the API was located. 

 

That solved my needs. 

 

Andrea

0 votes
dima_ifoxnetworks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2019

@Ana Retamal  The documentation you pointed is not for Enterprise. Where can I find the one specifically for Enterprise? 

 

I have to create Tags using Bitbucket API for a private enterprise repo. 

 

I was able to fetch tags by using 

 

GET {my-private-bitbucket-server}/rest/api/latest/projects/COC/repos/cocoa_ios/tags 

 

However, when I try to do a POST 

 

GET {my-private-bitbucket-server}/rest/api/latest/projects/COC/repos/cocoa_ios/tags 

 

with the body 
{
"name" : "1.0.0-test-tag",
"target" : {
     "hash" : "<some hash value>"
  }
}

it doesn't work

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events