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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events