public class LastCompletedBuildSelector extends BuildSelector
Modifier and Type | Class and Description |
---|---|
static class |
LastCompletedBuildSelector.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static Descriptor<BuildSelector> |
DESCRIPTOR
Deprecated.
here for backward compatibility. Get it from
Jenkins.getDescriptor(Class) |
Constructor and Description |
---|
LastCompletedBuildSelector() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSelectable(Run<?,?> run,
EnvVars env)
Should this build be selected? Override just this method to use a standard
loop through completed builds, starting with the most recent.
|
getArtifacts, getBuild, getBuild, getSourceDirectory, isBuildResultBetterOrEqualTo
getDescriptor
@Deprecated public static Descriptor<BuildSelector> DESCRIPTOR
Jenkins.getDescriptor(Class)
@DataBoundConstructor public LastCompletedBuildSelector()
public boolean isSelectable(Run<?,?> run, EnvVars env)
BuildSelector
isSelectable
in class BuildSelector
run
- Build to checkenv
- Environment for build that is copying artifactsCopyright © 2016–2022. All rights reserved.