Class GitVersionNodeMonitor

java.lang.Object
hudson.node_monitors.NodeMonitor
io.jenkins.plugins.gitversionmonitor.GitVersionNodeMonitor
All Implemented Interfaces:
ExtensionPoint, Describable<NodeMonitor>

@NullMarked public class GitVersionNodeMonitor extends NodeMonitor
Node monitor that reports the version of Git installed on each node, with the full version as a tooltip. Nodes with an older Git than the controller are marked with a warning.
  • Constructor Details

    • GitVersionNodeMonitor

      @DataBoundConstructor public GitVersionNodeMonitor()
  • Method Details

    • toHtml

      public String toHtml(@Nullable GitVersionInfo info)
      The version shown in the column, or N/A if it is unknown.
    • isOutdated

      public boolean isOutdated(@Nullable GitVersionInfo info)
      Whether the node has an older Git than the controller. A node with a newer Git, or with a version that is unknown on either side, is not outdated.
    • getTooltip

      public String getTooltip(@Nullable GitVersionInfo info)
      The full version, with the controller's version added if the node is outdated. Empty if the version is unknown.