Class BuildAliasSetter
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- org.jenkinsci.plugins.buildaliassetter.BuildAliasSetter
-
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<BuildWrapper>
public class BuildAliasSetter extends 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
Nested Classes Modifier and Type Class Description static class
BuildAliasSetter.CopyProjectPermalinksEraser
static class
BuildAliasSetter.DanglingAliasDeleter
static class
BuildAliasSetter.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BuildAliasSetter(DescribableList<AliasProvider,AliasProvider.Descriptor> providers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribableList<AliasProvider,AliasProvider.Descriptor>
configuredProviders()
hudson.matrix.MatrixAggregator
createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
BuildAliasSetter.DescriptorImpl
getDescriptor()
BuildWrapper.Environment
setUp(AbstractBuild build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
-
-
-
-
Constructor Detail
-
BuildAliasSetter
public BuildAliasSetter(@Nonnull DescribableList<AliasProvider,AliasProvider.Descriptor> providers)
-
-
Method Detail
-
configuredProviders
@Nonnull public DescribableList<AliasProvider,AliasProvider.Descriptor> configuredProviders()
-
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
- Overrides:
setUp
in classBuildWrapper
- Throws:
IOException
InterruptedException
-
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
- Specified by:
createAggregator
in interfacehudson.matrix.MatrixAggregatable
-
getDescriptor
public BuildAliasSetter.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<BuildWrapper>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BuildWrapper>
-
-