public class DockerBuilder extends Builder
Modifier and Type | Class and Description |
---|---|
static class |
DockerBuilder.DescriptorImpl
Descriptor for
DockerBuilder . |
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
BUILDERS, PUBLISHERS
Constructor and Description |
---|
DockerBuilder(String repoName) |
DockerBuilder(String repoName,
String repoTag,
boolean skipPush,
boolean noCache,
boolean forcePull,
boolean skipBuild,
boolean skipDecorate,
boolean skipTagLatest,
String dockerfilePath)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getBuildAdditionalArgs() |
String |
getBuildContext() |
DockerBuilder.DescriptorImpl |
getDescriptor() |
String |
getDockerfilePath() |
String |
getDockerToolName() |
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint |
getRegistry() |
String |
getRepo()
Fully qualified repository/image name with the registry url in front
|
String |
getRepoName() |
String |
getRepoTag() |
org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint |
getServer() |
boolean |
isCreateFingerprint() |
boolean |
isForcePull() |
boolean |
isForceTag() |
boolean |
isNoCache() |
boolean |
isSkipBuild() |
boolean |
isSkipDecorate() |
boolean |
isSkipPush() |
boolean |
isSkipTagLatest() |
boolean |
perform(AbstractBuild build,
Launcher launcher,
BuildListener listener) |
void |
setBuildAdditionalArgs(String buildAdditionalArgs) |
void |
setBuildContext(String buildContext) |
void |
setCreateFingerprint(boolean createFingerprint) |
void |
setDockerfilePath(String dockerfilePath) |
void |
setDockerToolName(String dockerToolName) |
void |
setForcePull(boolean forcePull) |
void |
setForceTag(boolean forceTag) |
void |
setNoCache(boolean noCache) |
void |
setRegistry(org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry) |
void |
setRepoTag(String repoTag) |
void |
setServer(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint server) |
void |
setSkipBuild(boolean skipBuild) |
void |
setSkipDecorate(boolean skipDecorate) |
void |
setSkipPush(boolean skipPush) |
void |
setSkipTagLatest(boolean skipTagLatest) |
all, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
@Deprecated public DockerBuilder(String repoName, String repoTag, boolean skipPush, boolean noCache, boolean forcePull, boolean skipBuild, boolean skipDecorate, boolean skipTagLatest, String dockerfilePath)
@DataBoundConstructor public DockerBuilder(String repoName)
public org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint getServer()
@DataBoundSetter public void setServer(org.jenkinsci.plugins.docker.commons.credentials.DockerServerEndpoint server)
public org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint getRegistry()
@DataBoundSetter public void setRegistry(org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint registry)
public String getRepoName()
public boolean isNoCache()
@DataBoundSetter public void setNoCache(boolean noCache)
public boolean isForcePull()
@DataBoundSetter public void setForcePull(boolean forcePull)
public String getBuildContext()
@DataBoundSetter public void setBuildContext(String buildContext)
public String getDockerfilePath()
@DataBoundSetter public void setDockerfilePath(String dockerfilePath)
public String getBuildAdditionalArgs()
@DataBoundSetter public void setBuildAdditionalArgs(String buildAdditionalArgs)
public boolean isSkipBuild()
@DataBoundSetter public void setSkipBuild(boolean skipBuild)
public boolean isSkipDecorate()
@DataBoundSetter public void setSkipDecorate(boolean skipDecorate)
public String getRepoTag()
@DataBoundSetter public void setRepoTag(String repoTag)
public boolean isSkipPush()
@DataBoundSetter public void setSkipPush(boolean skipPush)
public boolean isSkipTagLatest()
@DataBoundSetter public void setCreateFingerprint(boolean createFingerprint)
public boolean isCreateFingerprint()
@DataBoundSetter public void setSkipTagLatest(boolean skipTagLatest)
public boolean isForceTag()
@DataBoundSetter public void setForceTag(boolean forceTag)
public String getDockerToolName()
@DataBoundSetter public void setDockerToolName(String dockerToolName)
public String getRepo() throws IOException
IOException
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener)
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
public DockerBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Builder>
getDescriptor
in class Builder
Copyright © 2016–2022. All rights reserved.