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 Detail

      • 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 Detail

      • ScriptProcessor

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