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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannotate(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 buildvoidPlaces aHyperlinkNoteon the given text.static BuildListenerwrap(TaskListener l) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.BuildListener
finished, startedMethods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerializationMethods inherited from interface hudson.model.TaskListener
getCharset
-
Constructor Details
-
BuildListenerAdapter
-
-
Method Details
-
getLogger
Description copied from interface:TaskListenerThis writer will receive the output of the build- Specified by:
getLoggerin interfaceTaskListener
-
annotate
Description copied from interface:TaskListenerAnnotates 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:
annotatein interfaceTaskListener- Throws:
IOException
-
hyperlink
Description copied from interface:TaskListenerPlaces aHyperlinkNoteon the given text.- Specified by:
hyperlinkin interfaceTaskListener- Parameters:
url- If this starts with '/', it's interpreted as a path within the context path.- Throws:
IOException
-
error
Description copied from interface:TaskListenerAn error in the build.- Specified by:
errorin interfaceTaskListener- Returns:
- A writer to receive details of the error.
-
error
Description copied from interface:TaskListener- Specified by:
errorin interfaceTaskListener
-
fatalError
Description copied from interface:TaskListenerA fatal error in the build.- Specified by:
fatalErrorin interfaceTaskListener- Returns:
- A writer to receive details of the error.
-
fatalError
Description copied from interface:TaskListener- Specified by:
fatalErrorin interfaceTaskListener
-
wrap
-