@Extension(optional=true) public class PromotionCapabilitiesResolver extends CapabilitiesResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
PromotionCapabilitiesResolver.DeployPromotionBuilder
Our promotion deploy builder
|
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
PromotionCapabilitiesResolver() |
| Modifier and Type | Method and Description |
|---|---|
Set<DeploySourceOrigin> |
getBuilderSources(AbstractProject<?,?> project)
Return the set of sources to be used by
DeployBuilder. |
Set<DeploySourceOrigin> |
getInstantSources(AbstractProject<?,?> project)
Return the set of sources to be used by
DeployNowRunAction. |
Run<?,?> |
getLastSuccessfulBuild(AbstractProject<?,?> project)
Returns the last successful build of the specified project.
|
Set<DeploySourceOrigin> |
getPublisherSources(AbstractProject<?,?> project)
Return the set of sources to be used by
DeployPublisher. |
boolean |
isBuilderApplicable()
Return
true if and only if DeployBuilder is allowed to apply to
project types known by this resolver. |
boolean |
isInstantApplicable()
Return
true if and only if DeployNowRunAction is allowed to
apply to project types known by this resolver. |
boolean |
isPublisherApplicable()
Return
true if and only if DeployPublisher is allowed to apply to
project types known by this resolver. |
protected boolean |
knows(Class<? extends AbstractProject> jobType)
Returns
true if this resolver applies to the specific job type. |
getLastDeployableBuild, isBuilderFromWorkspace, isPublisherFromWorkspace, of, ofprotected boolean knows(@NonNull
Class<? extends AbstractProject> jobType)
true if this resolver applies to the specific job type.knows in class CapabilitiesResolverjobType - the specific job type.true if this resolver applies to the specific job type.@NonNull public Set<DeploySourceOrigin> getBuilderSources(@CheckForNull AbstractProject<?,?> project)
DeployBuilder.getBuilderSources in class CapabilitiesResolverproject - the project.DeployBuilder.@NonNull public Set<DeploySourceOrigin> getPublisherSources(@CheckForNull AbstractProject<?,?> project)
DeployPublisher.getPublisherSources in class CapabilitiesResolverproject - the project.DeployPublisher.@NonNull public Set<DeploySourceOrigin> getInstantSources(@CheckForNull AbstractProject<?,?> project)
DeployNowRunAction.getInstantSources in class CapabilitiesResolverproject - the project.DeployNowRunAction.public Run<?,?> getLastSuccessfulBuild(AbstractProject<?,?> project)
getLastSuccessfulBuild in class CapabilitiesResolverproject - the specified project.null if no such build exists.public boolean isBuilderApplicable()
true if and only if DeployBuilder is allowed to apply to
project types known by this resolver.isBuilderApplicable in class CapabilitiesResolvertrue if and only if DeployBuilder is allowed to apply to
project types known by this resolver.public boolean isInstantApplicable()
true if and only if DeployNowRunAction is allowed to
apply to project types known by this resolver.isInstantApplicable in class CapabilitiesResolvertrue if and only if DeployNowRunAction is allowed to
apply to project types known by this resolver.public boolean isPublisherApplicable()
true if and only if DeployPublisher is allowed to apply to
project types known by this resolver.isPublisherApplicable in class CapabilitiesResolvertrue if and only if DeployPublisher is allowed to apply to
project types known by this resolver.Copyright © 2016–2022. All rights reserved.