Class DockerJobProperty
- java.lang.Object
-
- hudson.model.JobProperty<J>
-
- jenkins.model.OptionalJobProperty<AbstractProject<?,?>>
-
- com.nirima.jenkins.plugins.docker.DockerJobProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class DockerJobProperty extends OptionalJobProperty<AbstractProject<?,?>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DockerJobProperty.DescriptorImpl
-
Nested classes/interfaces inherited from class jenkins.model.OptionalJobProperty
OptionalJobProperty.OptionalJobPropertyDescriptor
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
additionalTag
boolean
cleanImages
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description DockerJobProperty(String additionalTag, boolean cleanImages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdditionalTag()
DockerJobTemplateProperty
getDockerJobTemplate()
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint
getRegistry()
boolean
isCleanImages()
boolean
isPushOnSuccess()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
void
setRegistry(org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry)
-
Methods inherited from class jenkins.model.OptionalJobProperty
getDescriptor
-
Methods inherited from class hudson.model.JobProperty
getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, prebuild, reconfigure, setOwner
-
-
-
-
Field Detail
-
additionalTag
public final String additionalTag
-
cleanImages
public final boolean cleanImages
-
-
Constructor Detail
-
DockerJobProperty
@DataBoundConstructor public DockerJobProperty(String additionalTag, boolean cleanImages)
-
-
Method Detail
-
getAdditionalTag
@Exported public String getAdditionalTag()
-
isPushOnSuccess
@Exported public boolean isPushOnSuccess()
-
isCleanImages
@Exported public boolean isCleanImages()
-
getRegistry
public org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint getRegistry()
-
setRegistry
@DataBoundSetter public void setRegistry(org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry)
-
getDockerJobTemplate
@Exported public DockerJobTemplateProperty getDockerJobTemplate()
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classJobProperty<AbstractProject<?,?>>
- Throws:
InterruptedException
IOException
-
-