History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2741
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Unable to save QB logs to a file.

Created: 15/Jun/16 03:18 AM   Updated: 18/Jun/16 12:20 AM
Component/s: None
Affects Version/s: 6.1.14
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
 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);


 All   Comments   Work Log   Change History      Sort Order:
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.

Phong Trinh [17/Jun/16 03:01 AM]
It works in the post-build script. Thanks Robin.