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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnvInjectJobPropertyInfo.DescriptorImpl
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.envinject.EnvInjectInfo
populateTriggerCause, propertiesContent, propertiesFilePath
-
-
Constructor Summary
Constructors Constructor Description EnvInjectJobPropertyInfo()
EnvInjectJobPropertyInfo(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Descriptor<EnvInjectJobPropertyInfo>
getDescriptor()
String
getGroovyScriptContent()
Deprecated.String
getScriptContent()
String
getScriptFilePath()
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
getSecureGroovyScript()
boolean
isLoadFilesFromMaster()
Check if the configuration requires loading of script and property files from the controller.protected Object
readResolve()
-
Methods inherited from class org.jenkinsci.plugins.envinject.EnvInjectInfo
fixCrLf, getPropertiesContent, getPropertiesContentMap, getPropertiesFilePath
-
-
-
-
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 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 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 ofEnvInjectPluginConfiguration.enableLoadingFromMaster
.
-
getDescriptor
public Descriptor<EnvInjectJobPropertyInfo> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<EnvInjectJobPropertyInfo>
-
readResolve
protected Object readResolve()
-
-