public class PortAllocator extends BuildWrapper
This just mediates between different Jobs running on the same Computer by assigning free ports and its the jobs responsibility to open and close the ports.
Modifier and Type | Class and Description |
---|---|
static class |
PortAllocator.DescriptorImpl |
BuildWrapper.Environment
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static PortAllocator.DescriptorImpl |
DESCRIPTOR |
PortType[] |
ports |
Modifier and Type | Method and Description |
---|---|
Descriptor<BuildWrapper> |
getDescriptor() |
String |
getDisplayName() |
BuildWrapper.Environment |
setUp(AbstractBuild build,
Launcher launcher,
BuildListener listener) |
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
public final PortType[] ports
@Extension public static final PortAllocator.DescriptorImpl DESCRIPTOR
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
setUp
in class BuildWrapper
IOException
InterruptedException
public String getDisplayName()
public Descriptor<BuildWrapper> getDescriptor()
getDescriptor
in interface Describable<BuildWrapper>
getDescriptor
in class AbstractDescribableImpl<BuildWrapper>
Copyright © 2016–2023. All rights reserved.