Class FolderPropertiesSnapshotAction

java.lang.Object
hudson.model.InvisibleAction
com.mig82.folders.environment.FolderPropertiesSnapshotAction
All Implemented Interfaces:
Action, EnvironmentContributingAction, ModelObject

public final class FolderPropertiesSnapshotAction extends InvisibleAction implements EnvironmentContributingAction
Stores the immutable folder property snapshot used by a build that opts into build-start exposure.
  • Method Details

    • getValues

      public Map<String,String> getValues()
    • getBuildStartValues

      public Map<String,String> getBuildStartValues()
    • getSources

      public Map<String,String> getSources()
    • buildEnvironment

      public void buildEnvironment(Run<?,?> run, EnvVars env)
      Specified by:
      buildEnvironment in interface EnvironmentContributingAction
    • createForBuildStart

      public static void createForBuildStart(Run<?,?> run)
      Creates a persistent snapshot only when at least one resolved property is exposed at build start.
    • resolveValues

      public static Map<String,String> resolveValues(Run<?,?> run)
      Returns the persistent build-start snapshot when present, otherwise resolves the current folder configuration.