Package jenkins.util
Class BuildListenerAdapter
java.lang.Object
jenkins.util.BuildListenerAdapter
- All Implemented Interfaces:
BuildListener
,TaskListener
,Serializable
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
Wraps a
TaskListener
as a BuildListener
for compatibility with APIs which historically expected the latter.- Since:
- 1.577
- See Also:
-
Field Summary
Fields inherited from interface hudson.model.TaskListener
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
annotate
(ConsoleNote ann) Annotates the current position in the output log by using the given annotation.An error in the build.fatalError
(String msg) A fatal error in the build.fatalError
(String format, Object... args) This writer will receive the output of the buildvoid
Places aHyperlinkNote
on the given text.static BuildListener
wrap
(TaskListener l) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.BuildListener
finished, started
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
Methods inherited from interface hudson.model.TaskListener
getCharset
-
Constructor Details
-
BuildListenerAdapter
-
-
Method Details
-
getLogger
Description copied from interface:TaskListener
This writer will receive the output of the build- Specified by:
getLogger
in interfaceTaskListener
-
annotate
Description copied from interface:TaskListener
Annotates the current position in the output log by using the given annotation. If the implementation doesn't support annotated output log, this method might be no-op.- Specified by:
annotate
in interfaceTaskListener
- Throws:
IOException
-
hyperlink
Description copied from interface:TaskListener
Places aHyperlinkNote
on the given text.- Specified by:
hyperlink
in interfaceTaskListener
- Parameters:
url
- If this starts with '/', it's interpreted as a path within the context path.- Throws:
IOException
-
error
Description copied from interface:TaskListener
An error in the build.- Specified by:
error
in interfaceTaskListener
- Returns:
- A writer to receive details of the error.
-
error
Description copied from interface:TaskListener
- Specified by:
error
in interfaceTaskListener
-
fatalError
Description copied from interface:TaskListener
A fatal error in the build.- Specified by:
fatalError
in interfaceTaskListener
- Returns:
- A writer to receive details of the error.
-
fatalError
Description copied from interface:TaskListener
- Specified by:
fatalError
in interfaceTaskListener
-
wrap
-