How to find Bamboo triggered build plans in atlassian-bamboo.log

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The Bamboo application write logs when it executes a Build Plan in the <bamboo-home>/logs/atlassian-bamboo.log file. We can gather information on Build plans that are executed by filtering the information from  atlassian-bamboo.log

Solution

To filter all builds execution

To find  all the builds  use the keywords 'ExecutionPhaseServiceImpl' and 'Finished'

All builds
[ Bamboo]# less  BAMBOO_HOME/logs/atlassian-bamboo.log  | grep ExecutionPhaseServiceImpl  | grep finished | tail -5
2022-02-08 16:01:19,105 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [ExecutionPhaseServiceImpl] My First Project - My Very First Plan - Default Job #9 (MFP-MVFP-JOB1-9) execution finished
2022-02-08 16:01:25,732 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [ExecutionPhaseServiceImpl] My First Project - My Very First Plan - TEStBranch407 - Default Job #9 (MFP-MVFP0-JOB1-9) execution finished
2022-02-08 16:01:25,734 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [ExecutionPhaseServiceImpl] My First Project - My Very First Plan - TEStBranch407 - Default Job #9 (MFP-MVFP0-JOB1-9) execution finished
2022-02-08 16:01:41,250 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [ExecutionPhaseServiceImpl] My First Project - My Very First Plan - Default Job #10 (MFP-MVFP-JOB1-10) execution finished
2022-02-08 16:01:41,251 INFO [18-BAM::Default Agent::Agent:pool-33-thread-1] [ExecutionPhaseServiceImpl] My First Project - My Very First Plan - Default Job #10 (MFP-MVFP-JOB1-10) execution finished

To filter automatically triggered builds

To find the automatically triggered Build Plans via change detection use the keyword 'ChangeDetectionListenerAction' | grep 'found [0-9] change'

Automatically triggered builds by Change detection
 [ Bamboo]# less BAMBOO_HOME/logs/atlassian-bamboo.log   | grep ChangeDetectionListenerAction | grep  'found [0-9] change'
2022-02-08 15:53:50,955 INFO [9-BAM::PlanExec:pool-15-thread-1] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP1
2022-02-08 15:56:05,900 INFO [9-BAM::PlanExec:pool-15-thread-2] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP
2022-02-08 16:01:40,874 INFO [9-BAM::PlanExec:pool-15-thread-4] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP
2022-02-08 16:33:40,886 INFO [9-BAM::PlanExec:pool-15-thread-2] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP
2022-02-08 16:41:45,885 INFO [9-BAM::PlanExec:pool-15-thread-2] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP
2022-02-08 16:43:38,519 INFO [9-BAM::PlanExec:pool-15-thread-1] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP
2022-02-08 16:44:36,260 INFO [9-BAM::PlanExec:pool-15-thread-3] [ChangeDetectionListenerAction] : Change detection found 1 change for plan MFP-MVFP

To filter manually triggered builds

To find the manually triggered Build Plans use the keyword 'triggerManualBuild.action'

Manually triggered builds
[ Bamboo]#  less BAMBOO_HOME/logs/atlassian-bamboo.log   | grep triggerManualBuild.action
2022-02-08 15:20:29,520 INFO [http-nio-8085-exec-18] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP 519736kb
2022-02-08 15:20:35,571 INFO [http-nio-8085-exec-10] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP 389765kb
2022-02-08 15:37:02,005 INFO [http-nio-8085-exec-22] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP 421800kb
2022-02-08 15:39:41,662 INFO [http-nio-8085-exec-7] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 601365kb
2022-02-08 15:39:52,709 INFO [http-nio-8085-exec-11] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 584910kb
2022-02-08 15:46:34,629 INFO [http-nio-8085-exec-5] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 492922kb
2022-02-08 15:47:20,563 INFO [http-nio-8085-exec-15] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 376184kb
2022-02-08 15:48:24,256 INFO [http-nio-8085-exec-20] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 486857kb
2022-02-08 15:49:02,528 INFO [http-nio-8085-exec-3] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP 581936kb
2022-02-08 15:51:38,915 INFO [http-nio-8085-exec-24] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP0 381976kb
2022-02-08 15:51:57,098 INFO [http-nio-8085-exec-16] [AccessLogFilter] root POST http://lb:8085/build/admin/triggerManualBuild.action?buildKey=MFP-MVFP1 490408kb




Last modified on Mar 14, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.