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
locations| Modifier and Type | Class and Description |
|---|---|
static class |
UntrustedBranchProperty.DescriptorImpl
Our
Descriptor. |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
UntrustedBranchProperty(String[] publisherWhitelist) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getPublisherWhitelist() |
<P extends Job<P,B>,B extends 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 Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> jobType)
BranchPropertyJobDecorator for the specific job type.jobDecorator in class BranchPropertyP - 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–2019. All rights reserved.