From 346618afe12cfd899a34d6deeb51eaeee0b41168 Mon Sep 17 00:00:00 2001 From: Jorge Marin Date: Fri, 6 Jul 2018 11:16:40 +0100 Subject: [PATCH] Use the correct object to get log file --- .../java/hudson/plugins/textfinder/TextFinderPublisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/plugins/textfinder/TextFinderPublisher.java b/src/main/java/hudson/plugins/textfinder/TextFinderPublisher.java index 3cc1159..547537a 100644 --- a/src/main/java/hudson/plugins/textfinder/TextFinderPublisher.java +++ b/src/main/java/hudson/plugins/textfinder/TextFinderPublisher.java @@ -140,7 +140,7 @@ private void findText(Run run, FilePath workspace, TaskListener listener) // printing this when checking console output will cause the plugin // to find this line, which would be pointless. // doing this only when fileSet!=null to avoid - logger.println("Looking for pattern " + "'" + regexp + "'" + " in the file " + "'" + build.getLogFile() + "'"); + logger.println("Looking for pattern " + "'" + regexp + "'" + " in the file " + "'" + run.getLogFile() + "'"); } final RemoteOutputStream ros = new RemoteOutputStream(logger);