<< Back to previous view |
![]() |
[QB-4035] Need quickbuild api for fetching build logs
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 12.0.12 |
Fix Version/s: | None |
Type: | Task | Priority: | Major |
Reporter: | rani dharne | Assigned To: | Robin Shen |
Resolution: | Won't Fix | Votes: | 0 |
Remaining Estimate: | 4 days | Time Spent: | Unknown |
Original Estimate: | 4 days |
Description |
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. |
Comments |
Comment by 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. |
Comment by 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. |
Comment by 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. |