Class EnvInjectRunHelper

java.lang.Object
com.tikal.jenkins.plugins.multijob.EnvInjectRunHelper

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class EnvInjectRunHelper extends Object
This method contains abstraction layers for methods, which are available only in AbstractBuild.
Author:
Oleg Nenashev
  • Constructor Details

    • EnvInjectRunHelper

      public EnvInjectRunHelper()
  • Method Details

    • getBuildVariables

      public static void getBuildVariables(@NonNull Run<?,?> run, EnvVars result)
      Gets build variables. For AbstractBuild it invokes the standard method, for other types it relies on ParametersAction only.
      Parameters:
      run - Run
      result - Target collection, where the variables will be added
    • getJDKVariables

      public static void getJDKVariables(@NonNull Run<?,?> run, TaskListener logger, EnvVars result) throws IOException, InterruptedException
      Gets JDK variables. For AbstractBuild it invokes operation on the node to retrieve the data; for other types it does nothing.
      Parameters:
      run - Run
      logger - Logger
      result - Target collection, where the variables will be added
      Throws:
      IOException - Operation failure
      InterruptedException - Operation has been interrupted
    • getBuildVariables

      public static Map<String,String> getBuildVariables(@NonNull Run<?,?> run, @NonNull org.jenkinsci.lib.envinject.EnvInjectLogger logger) throws org.jenkinsci.lib.envinject.EnvInjectException
      Throws:
      org.jenkinsci.lib.envinject.EnvInjectException
    • getEnvVarsPreviousSteps

      @NonNull public static Map<String,String> getEnvVarsPreviousSteps(@NonNull Run<?,?> build, @NonNull org.jenkinsci.lib.envinject.EnvInjectLogger logger) throws IOException, InterruptedException, org.jenkinsci.lib.envinject.EnvInjectException
      Throws:
      IOException
      InterruptedException
      org.jenkinsci.lib.envinject.EnvInjectException
    • getJenkinsSystemEnvVars

      @NonNull public static Map<String,String> getJenkinsSystemEnvVars(boolean forceOnMaster) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException