Package org.jenkinsci.plugins.envinject
Class EnvInjectJobPropertyInfo
java.lang.Object
org.jenkinsci.plugins.envinject.EnvInjectInfo
org.jenkinsci.plugins.envinject.EnvInjectJobPropertyInfo
- All Implemented Interfaces:
Describable<EnvInjectJobPropertyInfo>
,Serializable
public class EnvInjectJobPropertyInfo
extends EnvInjectInfo
implements Describable<EnvInjectJobPropertyInfo>
- Author:
- Gregory Boissinot
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.jenkinsci.plugins.envinject.EnvInjectInfo
populateTriggerCause, propertiesContent, propertiesFilePath
-
Constructor Summary
ConstructorsConstructorDescriptionEnvInjectJobPropertyInfo
(String propertiesFilePath, String propertiesContent, String scriptFilePath, String scriptContent, boolean loadFilesFromMaster, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureGroovyScript) Creates the job property definition.EnvInjectJobPropertyInfo
(String propertiesFilePath, String propertiesContent, String scriptFilePath, String scriptContent, String groovyScriptContent, boolean loadFilesFromMaster) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
boolean
Check if the configuration requires loading of script and property files from the controller.protected Object
Methods inherited from class org.jenkinsci.plugins.envinject.EnvInjectInfo
fixCrLf, getPropertiesContent, getPropertiesContentMap, getPropertiesFilePath
-
Constructor Details
-
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 injectedpropertiesContent
- Property definitionscriptFilePath
- Path to the Shell/batch script file, which should be executed to retrieve the EnvVarsscriptContent
- Shell/batch script, which should be executed to retrieve the EnvVarsloadFilesFromMaster
- Iftrue
, the script file will be loaded from the controllersecureGroovyScript
- 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 Details
-
getScriptFilePath
-
getScriptContent
-
getSecureGroovyScript
@CheckForNull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureGroovyScript() -
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 ofEnvInjectPluginConfiguration.enableLoadingFromMaster
.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<EnvInjectJobPropertyInfo>
-
readResolve
-