use of org.jenkinsci.plugins.workflow.actions.TagsAction in project blueocean-plugin by jenkinsci.
the class PipelineNodeUtil method isPostSyntheticStage.
public static boolean isPostSyntheticStage(@Nullable FlowNode node) {
if (node == null) {
return false;
}
TagsAction tagsAction = getSyntheticStage(node);
if (tagsAction == null) {
return false;
}
String value = tagsAction.getTagValue(SyntheticStage.TAG_NAME);
return value != null && value.equals(SyntheticStage.getPost());
}
use of org.jenkinsci.plugins.workflow.actions.TagsAction in project blueocean-plugin by jenkinsci.
the class PipelineNodeUtil method isSkippedStage.
public static boolean isSkippedStage(@Nullable FlowNode node) {
if (node == null) {
return false;
}
for (Action action : node.getActions()) {
if (action instanceof TagsAction && ((TagsAction) action).getTagValue(StageStatus.TAG_NAME) != null) {
TagsAction tagsAction = (TagsAction) action;
String value = tagsAction.getTagValue(StageStatus.TAG_NAME);
return value != null && value.equals(StageStatus.getSkippedForConditional());
}
}
return false;
}
use of org.jenkinsci.plugins.workflow.actions.TagsAction in project blueocean-plugin by jenkinsci.
the class PipelineNodeUtil method isPreSyntheticStage.
public static boolean isPreSyntheticStage(@Nullable FlowNode node) {
if (node == null) {
return false;
}
TagsAction tagsAction = getSyntheticStage(node);
if (tagsAction == null) {
return false;
}
String value = tagsAction.getTagValue(SyntheticStage.TAG_NAME);
return value != null && value.equals(SyntheticStage.getPre());
}
Aggregations