Class VManagerChartHelperStep

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.vmanager.charts.VManagerChartHelperStep
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.steps.Step>

public class VManagerChartHelperStep extends org.jenkinsci.plugins.workflow.steps.Step
Pipeline step vManagerChartHelper: copies the conventional vManager Charts input files from the agent workspace into the build's controller-side run directory (next to the log), so that CustomMetricsRunListener can find them after the build completes.

The following files are copied if they exist in the current workspace:

  • ${BUILD_NUMBER}.${BUILD_ID}.session_launch.output
  • ${BUILD_NUMBER}.${BUILD_ID}.sessions.input
  • vmanager-charts-config.json

Missing files are silently skipped. Existing files at the destination are overwritten. Must be invoked inside a node { } block so that a workspace is available.

Pipeline usage:

   node('linux') {
       // ... vManager Jenkins Plugin produced its .sessions.input here ...
       vManagerChartHelper()
   }
 
  • Constructor Details

    • VManagerChartHelperStep

      @DataBoundConstructor public VManagerChartHelperStep()
  • Method Details

    • start

      public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
      Specified by:
      start in class org.jenkinsci.plugins.workflow.steps.Step
      Throws:
      Exception