Class ReplayUnderGrantAction

java.lang.Object
hudson.model.InvisibleAction
io.jenkins.plugins.batchcontrol.queue.ReplayUnderGrantAction
All Implemented Interfaces:
Action, ModelObject

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class ReplayUnderGrantAction extends InvisibleAction
D-58c: the hidden marker of a run started by a Replay, Pipeline Rebuild or Restart from Stage that a user whose permission for it came only from a grant submitted. It travels with the queue item onto the run and is saved in the run's build.xml. A later re-run whose source is a marked run is refused for everyone but an administrator, before and after the review, because the replayed script is not part of the job's configuration a reviewer looks at.
  • Constructor Details

    • ReplayUnderGrantAction

      public ReplayUnderGrantAction(String user, String grantId)
    • ReplayUnderGrantAction

      public ReplayUnderGrantAction(String user, String grantId, Integer inheritedFrom)
    • ReplayUnderGrantAction

      public ReplayUnderGrantAction(String user, String grantId, Integer inheritedFrom, @CheckForNull String replayedBy)
  • Method Details

    • getInheritedFrom

      public Integer getInheritedFrom()
    • getUser

      public String getUser()
      Who started this run: the grant-only replayer for an own mark, the re-runner for an inherited one.
    • getGrantId

      public String getGrantId()
    • getReplayedBy

      @CheckForNull public String getReplayedBy()
      #1.2: the grant-only user who replayed the script this mark goes back to: getUser() for an own mark, the original replayer for an inherited one, null when an inherited marker saved before #1.2 does not say.