Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to send complete logging when sending mail from a Task within a Plan?

leegyu86 December 18, 2023

In Bamboo's final tasks, I am creating a task that sends Bamboo's execution results and logs by email.


Before the plan ends, the task is downloading the log through the URL below.
https://bamboo.aev.com/download/VES-AEV-SJT/build_logs/VES-AEV-SJT-3.log

 

The problem is, sometimes the last part of the log doesn't come out.
I would like to see logs up to the task of sending an email.


Isn't there a better way?

1 answer

1 accepted

2 votes
Answer accepted
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 18, 2023

Hello leegyu86,

Welcome to Atlassian community.

https://bamboo.aev.com/download/VES-AEV-SJT/build_logs/VES-AEV-SJT-3.log link would display the running logs during the build process if live log transmission is on, please read more about it at https://confluence.atlassian.com/bamboo/configuring-live-logs-transmission-1018270669.html

How it works is that Build whey they are running on the agent would store it temporally on the agent server, if the Live log transmission is On, agent would keep on sending the partial logs to the Bamboo server during the process of the build and when the build completes it replaces the whole content on the Bamboo server and deletes the temporary file on the Bamboo agent.

Read about all the scenarios on the above link.

Coming to your ask, I think the best idea to would be to split your plan into two stages.

* Stage 1 - Have everything configured

* Stage 2 - Configure the task to send the logs from the previous stage.

When Stage 1 completes, Bamboo would transmit all the logs files to the Bamboo server, so that when you use the link https://bamboo.aev.com/download/VES-AEV-SJT/build_logs/VES-AEV-SJT-3.log to download it doesn't have partial logs and contains everything as the logs are now available on Bamboo server. 

Maybe you can setup some sleep in script task of stage 2, so that it gives enough time for Bamboo to transfer all the log files for stage1 ( normally in case there are huge build logs).

Regards,

Shashank Kumar

**please don't forget to Accept the answer if your query was answered**

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events