com.thoughtsonmobile.jenkins.cocoapods
Class CocoaPodsBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by com.thoughtsonmobile.jenkins.cocoapods.CocoaPodsBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class CocoaPodsBuilder
extends hudson.tasks.Builder

CocoaPods Builder. This builder performs a "pod install" and "pod update" if it is configured in a jenkins build.

Version:
0.2
Author:
Leif Janzik (leif.janzik@gmail.com)

Nested Class Summary
static class CocoaPodsBuilder.DescriptorImpl
          Descriptor for CocoaPodsBuilder.
 
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
CocoaPodsBuilder(boolean cleanpods)
          Creates a new CocoaPodsBuilder object.
 
Method Summary
 CocoaPodsBuilder.DescriptorImpl getDescriptor()
          returns builder descriptor.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          This method is called during a jenkins build.
 
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
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

CocoaPodsBuilder

@DataBoundConstructor
public CocoaPodsBuilder(boolean cleanpods)
Creates a new CocoaPodsBuilder object.

Parameters:
cleanpods - value of per-project checkbox, if true the "pod" folder will be removed before refreshing pods
Method Detail

getDescriptor

public CocoaPodsBuilder.DescriptorImpl getDescriptor()
returns builder descriptor.

Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder
Returns:
builder descriptor

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
This method is called during a jenkins build.

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
build - current build
launcher - the launcher
listener - the build listener
Returns:
true if build step was successfull, false otherwise.


Copyright © 2004-2012 Thoughts on Mobile. All Rights Reserved.