Uses of Class
io.jenkins.plugins.batchcontrol.model.RunRequest
Packages that use RunRequest
Package
Description
-
Uses of RunRequest in io.jenkins.plugins.batchcontrol.action
Methods in io.jenkins.plugins.batchcontrol.action that return RunRequestMethods in io.jenkins.plugins.batchcontrol.action that return types with arguments of type RunRequestModifier and TypeMethodDescriptionRequestsSection.getActiveItems()Approved requests whose run has not started yet, on the current page, newest first.RequestsSection.getEndedItems()Executed, rejected, cancelled, expired and invalidated requests, newest first.RequestsSection.getPendingItems()Pending requests on the current page, oldest first (closest to its timeout on top). -
Uses of RunRequest in io.jenkins.plugins.batchcontrol.model
Methods in io.jenkins.plugins.batchcontrol.model that return RunRequestModifier and TypeMethodDescriptionstatic RunRequestRunRequest.create(String jobFullName, Map<String, String> parameters, String reason, String requester, String approver) Single-approver form ofcreate(String, Map, String, String, List).static RunRequestRunRequest.create(String jobFullName, Map<String, String> parameters, String reason, String requester, List<String> approvers) Creates a new PENDING request with a random UUID id (D-68) and its creation time fromBatchClock, holding the masked display mapparameters(D-72). -
Uses of RunRequest in io.jenkins.plugins.batchcontrol.ops
Methods in io.jenkins.plugins.batchcontrol.ops that return RunRequestModifier and TypeMethodDescriptionCreates a rerunRunRequestcarrying the failed run's own parameter values (D-72: taken from the build'sParametersAction, original secrets and recoverable file values included) and links it both ways:request.incidentIdandincident.rerunRequestIds.Approver-set form (D-37) ofIncidentService.rerun(String, String).Methods in io.jenkins.plugins.batchcontrol.ops with parameters of type RunRequestModifier and TypeMethodDescriptionstatic voidNotificationDispatcher.run(NotificationEvent event, RunRequest request) Event for a run request.static voidNotificationDispatcher.runEnded(NotificationEvent event, RunRequest request, boolean wasPending, String reason) D-54:NotificationEvent.CANCELLED,NotificationEvent.EXPIREDorNotificationEvent.INVALIDATEDfor a run request that ended without a decision. -
Uses of RunRequest in io.jenkins.plugins.batchcontrol.policy
Methods in io.jenkins.plugins.batchcontrol.policy that return RunRequestModifier and TypeMethodDescriptionApproves a PENDING request and submits the build.Cancels a PENDING request; requester or a Manage holder only (SPEC 7).RunRequestService.changeApprover(String id, String newApprover) Single-approver form ofRunRequestService.changeApprovers(String, List).RunRequestService.changeApprovers(String id, List<String> newApprovers) Replaces the designated approver set of a PENDING request; requester only (SPEC item 3, D-26, D-37).Single-approver form ofRunRequestService.create(Job, List, String, List, String), without an incident.RunRequestService.create(Job<?, ?> job, List<ParameterValue> values, String reason, List<String> approvers, String incidentId) Creates a PENDING run request holding the submitted typed values (D-72), linked to an incident whenincidentIdis given (SPEC item 11: the run listener links a successful rerun back to the incident).RunRequestService.create(Job<?, ?> job, List<ParameterValue> values, Map<String, Long> uploaded, String reason, List<String> approvers, String incidentId) AsRunRequestService.create(Job, List, String, List, String)for a web submission:uploadedmaps a parameter name to the size of the uploaded parts its value was created from (RequestBodyLimit.uploadedSize(org.kohsuke.stapler.StaplerRequest2, java.util.Collection<java.lang.String>)), which the kept-size check counts for a value whose own size cannot be read (D-74 (2)).RunRequestService.create(Job<?, ?> job, Map<String, String> parameters, String reason, String approver) Creates a PENDING run request from string values, designating a single approver: each value becomes a typed value through the job's parameter definition (SimpleParameterDefinition.createValue(String)), or aStringParameterValuewhere the job defines no such simple parameter, and the request is created as byRunRequestService.create(Job, List, String, List, String).Loads a request by id, ornull.Rejects a PENDING request; the comment is mandatory (SPEC 5).Methods in io.jenkins.plugins.batchcontrol.policy that return types with arguments of type RunRequestModifier and TypeMethodDescriptionRunRequestService.list()All stored requests, in creation order.Methods in io.jenkins.plugins.batchcontrol.policy with parameters of type RunRequestModifier and TypeMethodDescriptionbooleanRunRequestService.canCancel(RunRequest request) D-38b: whether the current user may cancelrequest: its requester holdingBatchControl/Requeston the job, or a Manage holder.booleanRunRequestService.canChangeApprovers(RunRequest request) D-38b: whether the current user may change the approvers ofrequest: its requester holdingBatchControl/Requeston the job.static booleanApprovalPolicy.checkDecision(RunRequest request) Checks that the current caller may decide (approve/reject) the given request (SPEC item 3: list membership AND the Approve permission at decision time, SPEC item 2: admin self-approval policy, D-37: any member of the designated set).booleanRunRequestService.requesterLacksBuild(RunRequest request) D-38a (SPEC item 6): whether the requester ofrequest(not the current user) lacksItem/Buildon the request's job, so an approval also authorises a run the requester could not start. -
Uses of RunRequest in io.jenkins.plugins.batchcontrol.store
Methods in io.jenkins.plugins.batchcontrol.store that return RunRequestModifier and TypeMethodDescriptionFileStore.loadRunRequest(String id) Store.loadRunRequest(String id) Loads a request by id from<id>.xml, or returnsnullif it does not exist.Methods in io.jenkins.plugins.batchcontrol.store that return types with arguments of type RunRequestModifier and TypeMethodDescriptionFileStore.listOpenRunRequests(Consumer<String> unreadable) default List<RunRequest> Store.listOpenRunRequests()Loads the PENDING and APPROVED run requests only, sorted by creation time.Store.listOpenRunRequests(Consumer<String> unreadable) AsStore.listOpenRunRequests(), and hands the id of every open request left out because its file cannot be read tounreadable, for a caller that must act on it once it can be read (an invalidation it would otherwise miss).FileStore.listRunRequests()Store.listRunRequests()Loads every stored run request, sorted by creation time.Methods in io.jenkins.plugins.batchcontrol.store with parameters of type RunRequestModifier and TypeMethodDescriptionvoidFileStore.saveNewRunRequest(RunRequest request, List<ParameterValue> values) Stores a new request (D-72, D-74):<id>.xml, then its typed values in<id>.values.xmlwhen there are any (a request without parameters has no values file).voidStore.saveNewRunRequest(RunRequest request, List<ParameterValue> values) Stores a new request (D-72, D-74):<id>.xml, then its typed values in<id>.values.xmlwhen there are any (a request without parameters has no values file).voidFileStore.saveRunRequest(RunRequest request) voidStore.saveRunRequest(RunRequest request) Writes (or rewrites, on a status transition) the request XML<id>.xmlatomically. -
Uses of RunRequest in io.jenkins.plugins.batchcontrol.ui
Methods in io.jenkins.plugins.batchcontrol.ui with parameters of type RunRequestModifier and TypeMethodDescriptionstatic booleanVisibility.canSeeRunRequest(RunRequest request) A run request is visible iff the caller has Manage (or Overall/Administer), OR is the requester, OR is a member of the designated approver set (D-37), OR holds Item/Read on the target job.static booleanRequesterPermission.lacksBuild(RunRequest request)