public class EnvInjectJobPropertyInfo extends EnvInjectInfo implements hudson.model.Describable<EnvInjectJobPropertyInfo>
Modifier and Type | Class and Description |
---|---|
static class |
EnvInjectJobPropertyInfo.DescriptorImpl |
populateTriggerCause, propertiesContent, propertiesFilePath
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
hudson.model.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 master.
|
fixCrLf, getPropertiesContent, getPropertiesContentMap, getPropertiesFilePath
public 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)
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
- If true
, the script file will be loaded from the mastersecureGroovyScript
- Groovy script to be executed in order to produce the environment variables.
This script will be verified by the Script Security plugin if defined.@Deprecated public EnvInjectJobPropertyInfo(@CheckForNull String propertiesFilePath, @CheckForNull String propertiesContent, @CheckForNull String scriptFilePath, @CheckForNull String scriptContent, @CheckForNull String groovyScriptContent, boolean loadFilesFromMaster)
@CheckForNull public String getScriptFilePath()
@CheckForNull public String getScriptContent()
@CheckForNull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureGroovyScript()
@CheckForNull @Deprecated public String getGroovyScriptContent()
public boolean isLoadFilesFromMaster()
true
if the loading from the master is required.
Note that this option may be rejected due to the value of EnvInjectPluginConfiguration.enableLoadingFromMaster
.public hudson.model.Descriptor<EnvInjectJobPropertyInfo> getDescriptor()
getDescriptor
in interface hudson.model.Describable<EnvInjectJobPropertyInfo>
Copyright © 2016–2017. All rights reserved.