com.cloudbees.dockerpublish
Class DockerBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by com.cloudbees.dockerpublish.DockerBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class DockerBuilder
extends hudson.tasks.Builder

Plugin to build and publish docker projects to the docker registry/index. This can optionally push, and bust cache.

Author:
Michael Neale

Nested Class Summary
static class DockerBuilder.DescriptorImpl
          Descriptor for DockerBuilder.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
DockerBuilder(String repoName, String repoTag, boolean skipPush, boolean noCache)
          See src/main/resources/hudson/plugins/hello_world/DockerBuilder/config.jelly for the actual HTML fragment for the configuration screen.
 
Method Summary
 DockerBuilder.DescriptorImpl getDescriptor()
           
 String getRepoName()
           
 String getRepoTag()
           
 boolean isNoCache()
           
 boolean isSkipPush()
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockerBuilder

@DataBoundConstructor
public DockerBuilder(String repoName,
                                          String repoTag,
                                          boolean skipPush,
                                          boolean noCache)
See src/main/resources/hudson/plugins/hello_world/DockerBuilder/config.jelly for the actual HTML fragment for the configuration screen.

Method Detail

getRepoName

public String getRepoName()

getRepoTag

public String getRepoTag()

isSkipPush

public boolean isSkipPush()

isNoCache

public boolean isNoCache()

perform

public boolean perform(hudson.model.AbstractBuild build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer

getDescriptor

public DockerBuilder.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder


Copyright © 2004-2014. All Rights Reserved.