public class TriggeringUsersAuthorizationStrategy extends AuthorizeProjectStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
TriggeringUsersAuthorizationStrategy.DescriptorImpl
Our descriptor.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
TriggeringUsersAuthorizationStrategy()
Our constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Job<?,?> project,
Queue.Item item)
Returns the
Authentication for the build. |
boolean |
hasJobConfigurePermission(AccessControlled context)
Tests if the job can be reconfigured by the current user when this strategy is the configured strategy.
|
all, authenticate, checkAuthorizationConfigurePermission, checkJobConfigurePermission, getDescriptor, hasAuthorizationConfigurePermission, readResolve@DataBoundConstructor public TriggeringUsersAuthorizationStrategy()
public Authentication authenticate(Job<?,?> project, Queue.Item item)
Authentication for the build.authenticate in class AuthorizeProjectStrategyproject - the project to run.item - the item in queue, which will be a build.true if authentication was successfulpublic boolean hasJobConfigurePermission(AccessControlled context)
Jenkins.ADMINISTER permission skips this check.hasJobConfigurePermission in class AuthorizeProjectStrategycontext - the context of the jobtrue if and only if the current user is allowed to reconfigure the specified job.Copyright © 2016–2021. All rights reserved.