<< Back to previous view

[QB-2741] Unable to save QB logs to a file.
Created: 15/Jun/16  Updated: 18/Jun/16

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 6.1.14
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Phong Trinh Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
 I used the following script in the Post-Execution action for saving the QB logs to log.txt in the workspace, but the log file is empty. Looks like the logs were not written to the file. Please advise. Thanks,

groovy:
def logFile = new File(configuration.workspaceDir, "log.txt");
build.saveLogAsText(logFile);


 Comments   
Comment by Robin Shen [ 16/Jun/16 12:26 AM ]
Make sure you are calling this in post-build script, which can be defined in advanced setting of configuration.
Comment by Phong Trinh [ 17/Jun/16 03:01 AM ]
It works in the post-build script. Thanks Robin.
Generated at Tue May 21 19:48:30 UTC 2024 using JIRA 189.