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

Key: QB-4035
Type: Task Task
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: rani dharne
Votes: 0
Watchers: 0
Operations

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

Need quickbuild api for fetching build logs

Created: 23/Oct/23 09:56 AM   Updated: 25/Dec/23 12:41 AM
Component/s: None
Affects Version/s: 12.0.12
Fix Version/s: None

Original Estimate: 4 days Remaining Estimate: 4 days Time Spent: Unknown


 Description  « Hide
hi Robin,

we want to interact with build logs to fetch some data from logs.
could you please provide the API using which we can interact with logs and also the example we can use the API in groovy script.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [23/Oct/23 11:30 PM]
For a finished build, you may run below groovy script on SERVER:

groovy:
def logContent = build.renderLogAsText();
// do whatever with logContent

An appropriate place to run the groovy script would be on the post-build script in advanced setting of the configuration.

rani dharne [25/Oct/23 05:11 AM]
Hi Robin,

Thanks for your response.
are there no any other way to run the script on Server.
we can't run the build always on server.


Robin Shen [25/Oct/23 05:42 AM]
The post-build script always run on server, even if the build itself runs on other nodes.