public class HostnameSpecification extends DomainSpecification
DomainSpecification
that matches HostnameRequirement
where
the hostname is on an includes
list but not on an excludes
list. The includes
and excludes
lists are comma separated
hostname with *
wildcards supported.Modifier and Type | Class and Description |
---|---|
static class |
HostnameSpecification.DescriptorImpl
Our
Descriptor . |
DomainSpecification.Result
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
HostnameSpecification(String includes,
String excludes)
Constructor for stapler.
|
Modifier and Type | Method and Description |
---|---|
String |
getExcludes()
Returns the hostnames to explicitly not match.
|
String |
getIncludes()
Returns the hostnames to match.
|
DomainSpecification.Result |
test(DomainRequirement requirement)
Tests the scope against this specification.
|
getDescriptor
@DataBoundConstructor public HostnameSpecification(String includes, String excludes)
includes
- Hostnames to match. A comma separated set of
hostname with *
wildcards supported.
null
signifies include everything.excludes
- Hostnames to explicitly not match. A comma separated set of
hostname with *
wildcards supported.
null
signifies exclude nothing.@CheckForNull public String getIncludes()
*
wildcards supported.
null
signifies include everything.@CheckForNull public String getExcludes()
*
wildcards supported.
null
signifies include everything.@NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
test
in class DomainSpecification
requirement
- the scope to test.Copyright © 2016–2021. All rights reserved.