Request for help to read from the the error log for Custom BatchFile

7 views
Skip to first unread message

Vinodhini Vijay

unread,
Aug 24, 2015, 9:23:39 AM8/24/15
to Jenkins Developers

Hello All,

I created a custom batch file that extends from BatchFile.  I have to read the error log of the custom BatchFile execution. How do I do it?

ProcStarter procStarter = launcher.launch().cmds(buildCommandLine(script)).envs(envVars).stdout(listener).pwd(ws);

int r = join(procStarter.start());

if (r == 1){

//TODO:Check the error log and decide on next steps

}

Thank you in advance!


Reply all
Reply to author
Forward
0 new messages