net.praqma.hudson.notifier
Class PucmNotifier

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by net.praqma.hudson.notifier.PucmNotifier
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class PucmNotifier
extends hudson.tasks.Notifier

PucmNotifier perfoms the user-chosen PUCM post-build actions

Author:
Troels Selch, Margit Bennetzen

Nested Class Summary
static class PucmNotifier.DescriptorImpl
          This class is used by Hudson to define the plugin.
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
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
static int __NO_PROMOTE
           
static int __PROMOTE_STABLE
           
static int __PROMOTE_UNSTABLE
           
static int __UNKNOWN_PROMOTE
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PucmNotifier(boolean promote, boolean recommended, boolean makeTag, boolean setDescription)
          Deprecated.  
PucmNotifier(boolean promote, boolean recommended, boolean makeTag, boolean setDescription, boolean ucmDeliver, java.lang.String alternateTarget, java.lang.String baselineName, boolean apply4level)
          Deprecated. as of PUCM 0.3.8
PucmNotifier(boolean promote, boolean recommended, boolean makeTag, boolean setDescription, UCMDeliver ucmDeliver)
          Deprecated. as of 0.3.16
PucmNotifier(boolean promote, boolean recommended, boolean makeTag, boolean setDescription, UCMDeliver ucmDeliver, int promoteAction)
          This constructor is used in the inner class DescriptorImpl.
 
Method Summary
 java.lang.String getAlternateTarget()
           
 java.lang.String getBaselineName()
           
 java.lang.String getbuildnumberMajor()
           
 java.lang.String getbuildnumberMinor()
           
 java.lang.String getbuildnumberPatch()
           
 java.lang.String getBuildnumberSequenceSelector()
           
 boolean getPromote()
           
 int getPromoteAction()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 java.lang.String getVersionFrom()
           
 boolean isMakeTag()
           
 boolean isRecommended()
           
 boolean isSetDescription()
           
 boolean isUcmDeliver()
           
 boolean needsToRunAfterFinalized()
          This indicates whether to let pucm run after(true) the job is done or before(false)
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Notifier
getDescriptor
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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
 

Field Detail

__UNKNOWN_PROMOTE

public static final int __UNKNOWN_PROMOTE
See Also:
Constant Field Values

__NO_PROMOTE

public static final int __NO_PROMOTE
See Also:
Constant Field Values

__PROMOTE_STABLE

public static final int __PROMOTE_STABLE
See Also:
Constant Field Values

__PROMOTE_UNSTABLE

public static final int __PROMOTE_UNSTABLE
See Also:
Constant Field Values
Constructor Detail

PucmNotifier

public PucmNotifier(boolean promote,
                    boolean recommended,
                    boolean makeTag,
                    boolean setDescription)
Deprecated. 

Before version 0.2.5(I think)

Parameters:
promote -
recommended -
makeTag -
setDescription -

PucmNotifier

public PucmNotifier(boolean promote,
                    boolean recommended,
                    boolean makeTag,
                    boolean setDescription,
                    boolean ucmDeliver,
                    java.lang.String alternateTarget,
                    java.lang.String baselineName,
                    boolean apply4level)
Deprecated. as of PUCM 0.3.8

This constructor is used in the inner class DescriptorImpl.

Parameters:
promote - if true, the baseline will be promoted after the build.
recommended - if true, the baseline will be marked 'recommended' in ClearCase.
makeTag - if true, pucm will set a Tag() on the baseline in ClearCase.

PucmNotifier

public PucmNotifier(boolean promote,
                    boolean recommended,
                    boolean makeTag,
                    boolean setDescription,
                    UCMDeliver ucmDeliver)
Deprecated. as of 0.3.16

This constructor is used in the inner class DescriptorImpl.

Parameters:
promote - if true, the baseline will be promoted after the build.
recommended - if true, the baseline will be marked 'recommended' in ClearCase.
makeTag - if true, pucm will set a Tag() on the baseline in ClearCase.
ucmDeliver - The special deliver object, in which all the deliver parameters are encapsulated.

PucmNotifier

public PucmNotifier(boolean promote,
                    boolean recommended,
                    boolean makeTag,
                    boolean setDescription,
                    UCMDeliver ucmDeliver,
                    int promoteAction)
This constructor is used in the inner class DescriptorImpl.

Parameters:
promote -
  1. Baseline will not be promoted after the build
  2. Baseline will be promoted after the build if stable
  3. Baseline will be promoted after the build if unstable
recommended - if true, the baseline will be marked 'recommended' in ClearCase.
makeTag - if true, pucm will set a Tag() on the baseline in ClearCase.
ucmDeliver - The special deliver object, in which all the deliver parameters are encapsulated.
Method Detail

needsToRunAfterFinalized

public boolean needsToRunAfterFinalized()
This indicates whether to let pucm run after(true) the job is done or before(false)

Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

perform

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

getPromote

public boolean getPromote()

getPromoteAction

public int getPromoteAction()

isRecommended

public boolean isRecommended()

isMakeTag

public boolean isMakeTag()

isSetDescription

public boolean isSetDescription()

isUcmDeliver

public boolean isUcmDeliver()

getAlternateTarget

public java.lang.String getAlternateTarget()

getBaselineName

public java.lang.String getBaselineName()

getVersionFrom

public java.lang.String getVersionFrom()

getBuildnumberSequenceSelector

public java.lang.String getBuildnumberSequenceSelector()

getbuildnumberMajor

public java.lang.String getbuildnumberMajor()

getbuildnumberMinor

public java.lang.String getbuildnumberMinor()

getbuildnumberPatch

public java.lang.String getbuildnumberPatch()


Copyright © 2011. All Rights Reserved.