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, sandboxwould probably havetrunk, branches, tagsas trusted andsandboxas untrusted where the Subversion permissions give any authenticated user write access tosandboxbut allow the project team to commit to all four locations
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.<P extends Job<P,B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator(Class<P> jobType) Deprecated.Returns aJobDecoratorfor 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:BranchPropertyReturns aJobDecoratorfor the specific job type.- Overrides:
jobDecoratorin classBranchProperty- Type Parameters:
P- the type of job.B- the type of run of the job.- Parameters:
jobType- the job class.- Returns:
- a
JobDecoratorornullif none appropriate to this type of job.
-