org.jenkinsci.plugins.graniteclient
Class ReplicatePackagesBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by org.jenkinsci.plugins.graniteclient.ReplicatePackagesBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class ReplicatePackagesBuilder
extends hudson.tasks.Builder

Implementation of the "Replicate Content Packages from CRX" build step


Nested Class Summary
static class ReplicatePackagesBuilder.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ReplicatePackagesBuilder(String packageIds, String baseUrls, String credentialsId, long requestTimeout, long serviceTimeout, long waitDelay, boolean ignoreErrors)
           
 
Method Summary
 String getBaseUrls()
           
 String getCredentialsId()
           
 String getPackageIds()
           
 String getPackageIds(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 long getRequestTimeout()
           
 long getServiceTimeout()
           
 long getWaitDelay()
           
 boolean isIgnoreErrors()
           
 List<net.adamcin.granite.client.packman.PackId> listPackIds(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setBaseUrls(String baseUrls)
           
 void setCredentialsId(String credentialsId)
           
 void setIgnoreErrors(boolean ignoreErrors)
           
 void setPackageIds(String packageIds)
           
 void setRequestTimeout(long requestTimeout)
           
 void setServiceTimeout(long serviceTimeout)
           
 void setWaitDelay(long waitDelay)
           
 
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, 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
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

ReplicatePackagesBuilder

@DataBoundConstructor
public ReplicatePackagesBuilder(String packageIds,
                                                     String baseUrls,
                                                     String credentialsId,
                                                     long requestTimeout,
                                                     long serviceTimeout,
                                                     long waitDelay,
                                                     boolean ignoreErrors)
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getPackageIds

public String getPackageIds()

getPackageIds

public String getPackageIds(hudson.model.AbstractBuild<?,?> build,
                            hudson.model.TaskListener listener)
                     throws IOException,
                            InterruptedException
Throws:
IOException
InterruptedException

getBaseUrls

public String getBaseUrls()

setBaseUrls

public void setBaseUrls(String baseUrls)

getCredentialsId

public String getCredentialsId()

setCredentialsId

public void setCredentialsId(String credentialsId)

listPackIds

public List<net.adamcin.granite.client.packman.PackId> listPackIds(hudson.model.AbstractBuild<?,?> build,
                                                                   hudson.model.TaskListener listener)
                                                            throws IOException,
                                                                   InterruptedException
Throws:
IOException
InterruptedException

getRequestTimeout

public long getRequestTimeout()

getServiceTimeout

public long getServiceTimeout()

isIgnoreErrors

public boolean isIgnoreErrors()

setPackageIds

public void setPackageIds(String packageIds)

setIgnoreErrors

public void setIgnoreErrors(boolean ignoreErrors)

setRequestTimeout

public void setRequestTimeout(long requestTimeout)

setServiceTimeout

public void setServiceTimeout(long serviceTimeout)

getWaitDelay

public long getWaitDelay()

setWaitDelay

public void setWaitDelay(long waitDelay)


Copyright © 2013-2014. All Rights Reserved.