Package jenkins.branch
Class UntrustedBranchProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<BranchProperty>
jenkins.branch.BranchProperty
jenkins.branch.UntrustedBranchProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<BranchProperty>
Deprecated.
Not used by Pipeline.
Indicates that the branch contains code changes from authors who do not otherwise have the write access
to the repository.
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:
- Github pull requests should be non-trusted as they can be created by any user
- A Subversion branching structure such as
trunk, branches, tags, sandbox
would probably havetrunk, branches, tags
as trusted andsandbox
as untrusted where the Subversion permissions give any authenticated user write access tosandbox
but allow the project team to commit to all four locations
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.<P extends Job<P,
B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator
(Class<P> jobType) Deprecated.Returns aJobDecorator
for the specific job type.Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
Constructor Details
-
UntrustedBranchProperty
Deprecated.
-
-
Method Details
-
getPublisherWhitelist
Deprecated. -
jobDecorator
Deprecated.Description copied from class:BranchProperty
Returns aJobDecorator
for the specific job type.- Overrides:
jobDecorator
in classBranchProperty
- Type Parameters:
P
- the type of job.B
- the type of run of the job.- Parameters:
jobType
- the job class.- Returns:
- a
JobDecorator
ornull
if none appropriate to this type of job.
-