Class NotificationContext

java.lang.Object
org.jenkinsci.plugins.stashNotifier.NotificationContext

public class NotificationContext extends Object
Properties from the build where this is running.
  • Constructor Details

    • NotificationContext

      public NotificationContext(PrintStream logger, String runId)
  • Method Details

    • getLogger

      public PrintStream getLogger()
      Anything logged here will show up in the running build's console log.
      Returns:
      handle to build's log
    • getRunId

      public String getRunId()
      This is the Run.getExternalizableId() from the running build, useful for detailed server-side logging (such as through slf4j).
      Returns:
      build's id