Any more help in this please.
On Tuesday, June 14, 2016 at 4:04:47 PM UTC+5:30, AJITH K.R wrote:
>
> Hi All,
>
> How can I get the console output information of Jenkins build under the
> workspace. I need to use it as an input for reporting purpose.
>
> Thanks,
> Ajith
>
--
You received this
un=method>
Thanks,
Ajith
On Wednesday, June 15, 2016 at 4:56:47 PM UTC+5:30, rginga wrote:
>
> And the error was??
>
>
>
> *From:* jenkins...@googlegroups.com [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *AJITH K.R
> *Sent:* Wednesday, June 15, 2016 6:17 AM
And the error was??
From: jenkinsci-users@googlegroups.com
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of AJITH K.R
Sent: Wednesday, June 15, 2016 6:17 AM
To: Jenkins Users
Subject: Re: Need help on usage of Jenkins console data
Thanks for the suggestion. I am completely new to groovy
Thanks for the suggestion. I am completely new to groovy and I tried
executing the script in post groovy step but it failed in step build.getLog()
:-(.
On Tuesday, June 14, 2016 at 5:46:45 PM UTC+5:30, rginga wrote:
>
> Ajith, I’m sure you can use a Post-build “Groovy Post-Build” to read the
>
Thanks Nux for the suggestion. I have few more concerns. I use an
enterprise version of Jenkins and I run the project in a linux slave. Is
there any way i can get the path of the log. Using some $ commands as such.
Please help me with this.
Thanks,
Ajith
On Tuesday, June 14, 2016 at 10:36:06
Another method (without using Groovy) is to simply get path and do
whatever you need with it.
buildLogPath="../builds/$BUILD_NUMBER/log"
Might be a good idea to copy the file if you are going to change it or
you need to make sure it's not change during other operations.
Ajith, I’m sure you can use a Post-build “Groovy Post-Build” to read the log
(build.getLog maybe) and the write it to a file in the workspace. There might
be a easier way and this code has not been “tested”.
Try something like this:
Log = build.getLog();
// is we are running on a remote