public class UntrustedBranchProperty extends BranchProperty
Such code can contain malicious changes, so this flag serves as a signal to allow other Jenkins to set up the build isolation to protect the build infrastructure.
Some examples of where the trusted vs non-trusted distinction becomes important:
trunk, branches, tags, sandbox
would probably have
trunk, branches, tags
as trusted and sandbox
as untrusted where the Subversion permissions
give any authenticated user write access to sandbox
but allow the project team to commit to all four
locationsModifier and Type | Class and Description |
---|---|
static class |
UntrustedBranchProperty.DescriptorImpl
Our
Descriptor . |
Constructor and Description |
---|
UntrustedBranchProperty(String[] publisherWhitelist) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getPublisherWhitelist() |
<P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> |
jobDecorator(Class<P> jobType)
Returns a
JobDecorator for the specific job type. |
asArrayList, decorator, decorator, getDescriptor
@DataBoundConstructor public UntrustedBranchProperty(String[] publisherWhitelist)
public <P extends hudson.model.Job<P,B>,B extends hudson.model.Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
BranchProperty
JobDecorator
for the specific job type.jobDecorator
in class BranchProperty
P
- the type of job.B
- the type of run of the job.jobType
- the job class.JobDecorator
or null
if none appropriate to this type of job.Copyright © 2016–2017. All rights reserved.