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