How Can I push changes to remote repository using Git SCM API

Mohamed Yehia August 16, 2018

Hello,

I'm using the below code to push changes to remote repository using script runner, but it gives me timeout

 

 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()

 

How can I use the bitbucket java API to push changes to remote repository?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events