org.paylogic.jenkins.upmerge.releasebranch
Class ReleaseBranch

java.lang.Object
  extended by org.paylogic.jenkins.upmerge.releasebranch.ReleaseBranch
All Implemented Interfaces:
hudson.ExtensionPoint
Direct Known Subclasses:
ReleaseBranchImpl

public abstract class ReleaseBranch
extends Object
implements hudson.ExtensionPoint

Abstract class to represent a Release Branch. Implement one for your use case by filling the ExtensionPoint.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ReleaseBranch(String startBranch)
          Constructor of ReleaseBranch.
 
Method Summary
static hudson.ExtensionList<ReleaseBranch> all()
          Helper method for Jenkins custom extension point.
abstract  ReleaseBranch copy()
          Create a new ReleaseBranch object with the current release branch.
abstract  String getName()
          Returns the current branch name as String Output need to be able to be consumed by constructor of ReleaseBranch.
abstract  void next()
          Sets the object to the next release.
abstract  void next(List<String> branches)
          Sets the object to the next release with check for existing release branches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReleaseBranch

public ReleaseBranch(String startBranch)
              throws ReleaseBranchInvalidException
Constructor of ReleaseBranch. Split the name of the branch if needed and store locally.

Parameters:
startBranch - Name of branch to start with (String).
Throws:
ReleaseBranchInvalidException
Method Detail

next

public abstract void next()
Sets the object to the next release. Does not return representation of release.


next

public abstract void next(List<String> branches)
Sets the object to the next release with check for existing release branches. Does not return representation of release.


getName

public abstract String getName()
Returns the current branch name as String Output need to be able to be consumed by constructor of ReleaseBranch.

Returns:
current branch name

copy

public abstract ReleaseBranch copy()
                            throws ReleaseBranchInvalidException
Create a new ReleaseBranch object with the current release branch.

Returns:
new ReleaseBranch
Throws:
ReleaseBranchInvalidException

all

public static hudson.ExtensionList<ReleaseBranch> all()
Helper method for Jenkins custom extension point. Not in use, as I can't grasp Java generics...



Copyright © 2004-2014. All Rights Reserved.