com.atlassian.bitbucket.hook.ScmHookDetails |
Class Overview
Describes an SCM hook invocation, providing access to the output and error streams of the remote client
Public Methods
@Nonnull
public
PrintWriter
err
()
Returns
- a
PrintWriter
that can be used to output error messages to the remote client.
@Nonnull
public
Map<String, String>
getEnvironment
()
Returns
- the environment variables set by the SCM when the hook was run
@Nonnull
public
Optional<String>
getHookName
()
Returns
- the hook-identifier provided by the SCM hook callback
@Nonnull
public
PrintWriter
out
()
Returns
- a
PrintWriter
that can be used to output messages to the remote client.