Forums

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

How Can I push changes to remote repository using BitBucket Server APIs

Mohamed Yehia August 18, 2018

When I'm trying to push changes to remote repository using Bitbucket APIs ,It gets process timeout

using the below code,

gitCommandBuilderFactory.builder(sourceRepo) 
.push()
.refspec("refs/head/*")
.refspec("refs/tags/*")
.force(true)
.repository("http://myehia@localhost:7990/scm/test/test.git"
.build(new StringCommandOutputHandler()).call()

 Or 

gitCommandBuilderFactory.builder() 
.workingDirectory(webDirLocation)
.command("push")
.argument("--force")

.build(new StringCommandOutputHandler())
.call()

 

I also increased the process timeout,but without success .

 

What is wrong?

1 answer

0 votes
Mohamed Yehia August 20, 2018

Any anwers?

Mohamed Yehia August 23, 2018

Can anyone help me??

Mohamed Yehia August 23, 2018

Why is it hard to find answers in this community?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events