Skip to content

Commit

Permalink
Merge pull request #393 from Vlatombe/expose-executorstepexecution-ge…
Browse files Browse the repository at this point in the history
…tEnclosingLabel

Expose `ExecutorStepExecution#getEnclosingLabel`
  • Loading branch information
jglick authored Aug 21, 2024
2 parents dd04e25 + 04ab39e commit b7cec8f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
import org.jenkinsci.plugins.workflow.support.actions.WorkspaceActionImpl;
import org.jenkinsci.plugins.workflow.support.concurrent.Timeout;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.Beta;
import org.kohsuke.accmod.restrictions.DoNotUse;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.export.Exported;
Expand Down Expand Up @@ -807,7 +808,8 @@ public String getAffinityKey() {
/** hash code of list of heads */
private transient int lastCheckedHashCode;
private transient String lastEnclosingLabel;
@Restricted(NoExternalUse.class) // for Jelly

@Restricted(Beta.class)
public @CheckForNull String getEnclosingLabel() {
if (!context.isReady()) {
return null;
Expand Down

0 comments on commit b7cec8f

Please sign in to comment.