The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Script Runner behavior for MIRROR Repositories

Sivarama Krishna K
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 13, 2022

Hi

I am planning to Mirror Bitbucket repositories using Script Runner.

Fields requested by Script runner for "Mirror Bitbucket Server repositories"
1. Project : "Dashboard"
2. Target project : Selection from Existing List
3. Bitbucket User name on "Admin" User
4. BitBucket Password as "Admin user password"
5. base URL : Source Server URL

After providing above details, I just pressed PREVIEW to see the status.

Most of the times, it throws error stating "rest".

Not able to find any error message on LOG file.

 

Please help to resolve the issue.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes

Hi @Sivarama Krishna K 

 

in the 'Project' field, you need to fill in the project key (not name) of the project in the source server.

 

We have recently improved the errors you see when previewing a git mirror script, if you try ScriptRunner 7.12.0 or higher you will see much better messages like 'Project not found', 'wrong url' etc

 

Kind regards,

Yannis Argyrropoulos

Scriptrunner for Bitbucket

TAGS
AUG Leaders

Atlassian Community Events