Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

FishEye Create API Throws Repository Already exists

Navin Bandi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2019 edited

Hi Mates,

 

I have an automated workflow does the following.

 

1) Check if any existing repo exists with same name

2) If not create a new repository

3) Start the repository and disable the polling

 

But at the 2ndstep API  throws an error "code : IllegalArgument message: Repository: RepoTest1 already exists" even though the repository never existed on the FishEye.

 

When I find it in UI it has created the repository in stop state

 

FishEye and Crucible Version : 4.7.0

API : POST  /rest-service-fecru/admin/repositories

JSON Data : {
"type": "git",
"name": "RepoTest1",
"description": "RepoTest1",
"storeDiff": "true",
"enabled": "true",
"git": {
"location": "git@gitlab.com:band/testing_fisheye_project.git",
"auth": {
"authType": "key",
"privateKey": "",
"publicKey": ""
},
"blockSize": 400,
"commandTimeout": "1 hour",
"renameDetection": "NONE"
}
}

 

Please help.

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Fisheye/Crucible Events