public abstract class AliasProvider extends hudson.model.AbstractDescribableImpl<AliasProvider> implements hudson.ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
AliasProvider.Descriptor |
| Constructor and Description |
|---|
AliasProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
static hudson.util.FormValidation |
validateAlias(String aliasCandidate)
Validate custom alias
Aliases that does not conform to this contract will not be attached to the
build.
|
public abstract List<String> names(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvalidateAlias(String)public static hudson.util.FormValidation validateAlias(String aliasCandidate)
AliasProvider implementations might use this method from
their doCheckXXX methods to provide early feedback.
This implementation ensures that an alias can not possibly collide with
the build number (it must not be an integer) and buildin permalink
("lastBuild", "lastSuccessfulBuild", etc.).FormValidation describing the cause otherwise.Copyright © 2004-2016. All Rights Reserved.