/** * If this is representing an item that started executing, this property returns * the primary executable (such as {@link AbstractBuild}) that created out of it. */ @Exported public @CheckForNull Executable getExecutable() { return outcome!=null ? outcome.getPrimaryWorkUnit().getExecutable() : null; }
for (Executor e : c.getAllExecutors()) { final WorkUnit workUnit = e.getCurrentWorkUnit(); final Executable executable = workUnit != null ? workUnit.getExecutable() : null; final SubTask subtask = executable != null ? getParentOf(executable) : null;
/** * If this is representing an item that started executing, this property returns * the primary executable (such as {@link AbstractBuild}) that created out of it. */ @Exported public @CheckForNull Executable getExecutable() { return outcome!=null ? outcome.getPrimaryWorkUnit().getExecutable() : null; }
for (Executor e : c.getAllExecutors()) { final WorkUnit workUnit = e.getCurrentWorkUnit(); final Executable executable = workUnit != null ? workUnit.getExecutable() : null; final SubTask subtask = executable != null ? getParentOf(executable) : null;
WorkUnit workUnit = e.getCurrentWorkUnit(); if (workUnit != null) { Queue.Executable executable = workUnit.getExecutable(); if (executable != null) { Item item = ItemDeletion.getItemOf(getParentOf(executable));
WorkUnit workUnit = e.getCurrentWorkUnit(); if (workUnit != null) { Item item = ItemDeletion.getItemOf(getParentOf(workUnit.getExecutable())); if (item != null) { while (item != null) { WorkUnit workUnit = e.getCurrentWorkUnit(); if (workUnit != null) { Item item = ItemDeletion.getItemOf(getParentOf(workUnit.getExecutable())); if (item != null) { while (item != null) {