Skip to content

Project for clone all repos under any project with given project key.

Notifications You must be signed in to change notification settings

enesacikoglu/BitbucketRepoCloner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootBitbucketRepoClonerApi

First of All thanks to archenroot https://gist.github.com/archenroot/1d11f58d182163ce55bdafcdfe11d411

This is a sample cloner rest api project which uses spring boot ,unirest and jgit api.

Build

Run 'mvn clean install'

Run

After build step run 'mvn spring-boot:run'

Test

You can post the sample json request to the url: localhost:8080/api/repo/clone

{

"bitbucketServerUrl" :"http://stash.domain.com",
"localRepoDirectory" :"/Users/enes.acikoglu/Desktop/Projects/Trendyol",
"userName" : "enes",
"password" : "password",
"projectCount" : 61,
"projectKey" : "MAR"

}

This post request will pull all projects from stash url under the MAR project to '/Users/enes.acikoglu/Desktop/Projects/Trendyol' folder path.

Repo welcome to any pr or future. Please do not hesitate to contact with me.

About

Project for clone all repos under any project with given project key.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages