Class EnvInjectJobPropertyInfo

    • Constructor Detail

      • EnvInjectJobPropertyInfo

        public EnvInjectJobPropertyInfo()
      • EnvInjectJobPropertyInfo

        @DataBoundConstructor
        public EnvInjectJobPropertyInfo​(@CheckForNull
                                        String propertiesFilePath,
                                        @CheckForNull
                                        String propertiesContent,
                                        @CheckForNull
                                        String scriptFilePath,
                                        @CheckForNull
                                        String scriptContent,
                                        boolean loadFilesFromMaster,
                                        @CheckForNull
                                        org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureGroovyScript)
        Creates the job property definition.
        Parameters:
        propertiesFilePath - Path to the property file to be injected
        propertiesContent - Property definition
        scriptFilePath - Path to the Shell/batch script file, which should be executed to retrieve the EnvVars
        scriptContent - Shell/batch script, which should be executed to retrieve the EnvVars
        loadFilesFromMaster - If true, the script file will be loaded from the controller
        secureGroovyScript - Groovy script to be executed in order to produce the environment variables. This script will be verified by the Script Security plugin if defined.
      • EnvInjectJobPropertyInfo

        @Deprecated
        public EnvInjectJobPropertyInfo​(@CheckForNull
                                        String propertiesFilePath,
                                        @CheckForNull
                                        String propertiesContent,
                                        @CheckForNull
                                        String scriptFilePath,
                                        @CheckForNull
                                        String scriptContent,
                                        @CheckForNull
                                        String groovyScriptContent,
                                        boolean loadFilesFromMaster)
        Deprecated.
    • Method Detail

      • getScriptFilePath

        @CheckForNull
        public String getScriptFilePath()
      • getScriptContent

        @CheckForNull
        public String getScriptContent()
      • getSecureGroovyScript

        @CheckForNull
        public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureGroovyScript()
      • getGroovyScriptContent

        @CheckForNull
        @Deprecated
        public String getGroovyScriptContent()
        Deprecated.
      • isLoadFilesFromMaster

        public boolean isLoadFilesFromMaster()
        Check if the configuration requires loading of script and property files from the controller.
        Returns:
        true if the loading from the controller is required. Note that this option may be rejected due to the value of EnvInjectPluginConfiguration.enableLoadingFromMaster.
      • readResolve

        protected Object readResolve()