org.jenkinsci.plugins.buildaliassetter
Class TokenMacroAliasProvider

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<AliasProvider>
      extended by org.jenkinsci.plugins.buildaliassetter.AliasProvider
          extended by org.jenkinsci.plugins.buildaliassetter.TokenMacroAliasProvider
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<AliasProvider>

public class TokenMacroAliasProvider
extends AliasProvider

Provide aliases expanding token macro

Author:
ogondza

Nested Class Summary
static class TokenMacroAliasProvider.DescriptorImpl
           
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.buildaliassetter.AliasProvider
AliasProvider.Descriptor
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String template
           
 
Constructor Summary
TokenMacroAliasProvider(String template)
           
 
Method Summary
 TokenMacroAliasProvider.DescriptorImpl getDescriptor()
           
 List<String> names(hudson.model.AbstractBuild<?,?> build, hudson.model.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

public final String template
Constructor Detail

TokenMacroAliasProvider

@DataBoundConstructor
public TokenMacroAliasProvider(String template)
Method Detail

names

public List<String> names(hudson.model.AbstractBuild<?,?> build,
                          hudson.model.BuildListener listener)
                   throws IOException,
                          InterruptedException
Description copied from class: AliasProvider
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.

Specified by:
names in class AliasProvider
Returns:
A list of aliases. Possibly empty, never null.
Throws:
IOException
InterruptedException
See Also:
AliasProvider.validateAlias(String)

getDescriptor

public TokenMacroAliasProvider.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<AliasProvider>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<AliasProvider>


Copyright © 2004-2013. All Rights Reserved.