Ho to get execution time and status of each task using java in bamboo

Lipun June 4, 2019

Hi ,

I am new to bamboo and writing a plugin which will show the time taken by each task in job and status of the task in current build .

Currently I am using below line of code to get the TaskDefinition ,but no luck to get start time, end time and status of task  from task definition.

List<? extends ImmutableChainStage> stages = getChainResultsSummary().getImmutablePlan().getStages();


ImmutableChainStage stage=stages.get(0);
Set<? extends ImmutableJob> jobs= stage.getJobs();


ImmutableJob job=jobs.iterator().next();


TaskDefinition task= job.getTaskDefinitions().get(0);

 

Please suggest the correct java api for bamboo.

 

Thanks

 

 

1 answer

0 votes
Victor Debone
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2019

Hello @Lipun

Have you gave a look at Bamboo API docs? Also, I think this question is best suited for the Developer community at https://community.developer.atlassian.com/c/bamboo-development

Did that help? :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events