The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Bitbucket server commit using rest API

Nikhil Gadre
July 13, 2018

I have a butbucket server installed version (5.12.0). I would like to push/pull/fetch files from server using rest API. Is that possible? If not what is the alternate way achieve the same pragmatically?

Thanks,

Nikhil

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Mikael Sandberg
Community Champion
July 13, 2018

Hi Nikhil,

Welcome to the Atlassian Community.

Push/pull/fetch are Git commands, not Bitbucket, so all you need to do is use those Git commands in your script.

Nikhil Gadre
July 13, 2018

Hi Mikael,

hummmm. I am trying to understand what you just said. So what you are saying is that I just work with local git (in code) which in turn work with remote repo which is hosted on the on prem server (Bitbucket Server). Is that correct?

Again thank you very much for a quick response.

Thanks,

Nikhil

Mikael Sandberg
Community Champion
July 13, 2018

Yes, that is correct.

0 votes
Anton Chemlev - Toolstrek -
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 13, 2018
Nikhil Gadre
July 13, 2018

Hi Anton,

Thanks for a quick response. API 2.0 are not available on "On prem" server. Or atleast I am not aware of how to enable them. I tested API 1.0 works fine but they do not offer commit/pull and etc.

Thanks,

Nikhil

TAGS
AUG Leaders

Atlassian Community Events