Class ScriptProcessor

All Implemented Interfaces:
DeploymentProcessor, InitializableByConfigBean, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware

public class ScriptProcessor extends AbstractMainDeploymentProcessor implements org.springframework.context.ApplicationContextAware
Implementation of DeploymentProcessor that delegates execution to a Groovy script Can be configured with the following YAML properties:
  • scriptPath: The relative path of the script to execute
Since:
3.1.12
Author:
joseross
  • Field Details

    • CONFIG_KEY_SCRIPT_PATH

      public static final String CONFIG_KEY_SCRIPT_PATH
      See Also:
    • SCRIPT_VAR_LOGGER

      public static final String SCRIPT_VAR_LOGGER
      See Also:
    • SCRIPT_VAR_APP_CTX

      public static final String SCRIPT_VAR_APP_CTX
      See Also:
    • SCRIPT_VAR_DEPLOYMENT

      public static final String SCRIPT_VAR_DEPLOYMENT
      See Also:
    • SCRIPT_VAR_EXECUTION

      public static final String SCRIPT_VAR_EXECUTION
      See Also:
    • SCRIPT_VAR_FILTERED_CHANGE_SET

      public static final String SCRIPT_VAR_FILTERED_CHANGE_SET
      See Also:
    • SCRIPT_VAR_ORIGINAL_CHANGE_SET

      public static final String SCRIPT_VAR_ORIGINAL_CHANGE_SET
      See Also:
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • scriptEngine

      protected final groovy.util.GroovyScriptEngine scriptEngine
    • sandboxInterceptor

      protected final org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor sandboxInterceptor
    • scriptPath

      protected String scriptPath
      The relative path of the script to execute
  • Constructor Details

    • ScriptProcessor

      @ConstructorProperties({"scriptEngine","sandboxInterceptor"}) public ScriptProcessor(groovy.util.GroovyScriptEngine scriptEngine, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor sandboxInterceptor)
  • Method Details