org.jenkinsci.plugins.buildaliassetter
Class BuildAliasSetter

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by org.jenkinsci.plugins.buildaliassetter.BuildAliasSetter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.matrix.MatrixAggregatable, hudson.model.Describable<hudson.tasks.BuildWrapper>

public class BuildAliasSetter
extends hudson.tasks.BuildWrapper
implements hudson.matrix.MatrixAggregatable

Set aliases to the build This implementation sets the aliases twice, before and after the run. It is desirable to set aliases as soon as possible to reach the build before it's competition. On the other hand some data necessary to get the aliases might not be available before the build has finished. No alias will be set twice for the same build.

Author:
ogondza

Nested Class Summary
static class BuildAliasSetter.DanglingAliasDeleter
           
static class BuildAliasSetter.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
BuildAliasSetter()
           
 
Method Summary
 hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 BuildAliasSetter.DescriptorImpl getDescriptor()
           
 hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildAliasSetter

public BuildAliasSetter()
Method Detail

setUp

public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
                                                   hudson.Launcher launcher,
                                                   hudson.model.BuildListener listener)
                                            throws IOException,
                                                   InterruptedException
Overrides:
setUp in class hudson.tasks.BuildWrapper
Throws:
IOException
InterruptedException

createAggregator

public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build,
                                                       hudson.Launcher launcher,
                                                       hudson.model.BuildListener listener)
Specified by:
createAggregator in interface hudson.matrix.MatrixAggregatable

getDescriptor

public BuildAliasSetter.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>


Copyright © 2004-2013. All Rights Reserved.