Class TokenMacroAliasProvider
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AliasProvider>
-
- org.jenkinsci.plugins.buildaliassetter.AliasProvider
-
- org.jenkinsci.plugins.buildaliassetter.TokenMacroAliasProvider
-
- All Implemented Interfaces:
ExtensionPoint,Describable<AliasProvider>
public class TokenMacroAliasProvider extends AliasProvider
Provide aliases expanding token macro- Author:
- ogondza
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenMacroAliasProvider.DescriptorImpl-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.buildaliassetter.AliasProvider
AliasProvider.Descriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TokenMacroAliasProvider(String template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenMacroAliasProvider.DescriptorImplgetDescriptor()List<String>names(AbstractBuild<?,?> build, BuildListener listener)Get build aliases to be attached to the build Aliases not conforming to the BuildAliasSetter#validateAlias(String) are not going to be attached and an error will be reported.-
Methods inherited from class org.jenkinsci.plugins.buildaliassetter.AliasProvider
validateAlias
-
-
-
-
Field Detail
-
template
public final String template
-
-
Constructor Detail
-
TokenMacroAliasProvider
@DataBoundConstructor public TokenMacroAliasProvider(String template)
-
-
Method Detail
-
names
public List<String> names(AbstractBuild<?,?> build, BuildListener listener) throws IOException, InterruptedException
Description copied from class:AliasProviderGet build aliases to be attached to the build Aliases not conforming to the BuildAliasSetter#validateAlias(String) are not going to be attached and an error will be reported.- Specified by:
namesin classAliasProvider- Returns:
- A list of aliases. Possibly empty, never null.
- Throws:
IOExceptionInterruptedException- See Also:
AliasProvider.validateAlias(String)
-
getDescriptor
public TokenMacroAliasProvider.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<AliasProvider>- Overrides:
getDescriptorin classAbstractDescribableImpl<AliasProvider>
-
-