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: 

[Bitbucket] How to run jobs through atlassian-scheduler with the logged in permission?

Manushi Wijayapala
Contributor
June 9, 2017

Hi all,

I was able to implement a simple scheduler based job using atlassian-scheduler for a bitbucket server plugin which am developing currently. However the problem is when we run a job which should return all the project names / repository names in bitbucket, it returns only the projects/repositories with the public access. When I run the same functionality without the job scheduler (manual run) it returns all projects/reporitories.

How can I get all the projects/repos with a scheduled job? (The plugin wil be runned insided a Admin user permitted user)

 

Page<? extends Project> projectPage = projectService.findAll(new PageRequestImpl(0, 1000));
for (Project project : projectPage.getValues()) {
System.out.println("PROJECT NAME : " + project.getName());
}

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events