作者:gpik40799 | 来源:互联网 | 2023-09-12 10:56
本文整理了Java中org.jenkinsci.plugins.workflow.graph.FlowNode.save()
方法的一些代码示例,展示了FlowNode.save()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FlowNode.save()
方法的具体详情如下:
包路径:org.jenkinsci.plugins.workflow.graph.FlowNode
类名称:FlowNode
方法名:save
FlowNode.save介绍
[英]Explicitly save all the actions in this FlowNode. Useful when an existing Action gets updated.
[中]显式保存此FlowNode中的所有操作。更新现有操作时非常有用。
代码示例
代码示例来源:origin: org.jenkins-ci.plugins.workflow/workflow-api
private void persistSafe() {
try {
save();
} catch (IOException e) {
LOGGER.log(Level.WARNING, "failed to save actions for FlowNode id=" + this.id, e);
}
}
代码示例来源:origin: jenkinsci/pipeline-model-definition-plugin
private void attachTag(FlowNode currentNode, String syntheticContext) {
TagsAction tagsAction = currentNode.getAction(TagsAction.class);
if (tagsAction == null) {
tagsAction = new TagsAction();
tagsAction.addTag(SyntheticStage.TAG_NAME, syntheticContext);
currentNode.addAction(tagsAction);
} else if (tagsAction.getTagValue(SyntheticStage.TAG_NAME) == null) {
tagsAction.addTag(SyntheticStage.TAG_NAME, syntheticContext);
try {
currentNode.save();
} catch (IOException e) {
LOGGER.log(WARNING, "failed to save actions for FlowNode id=" + currentNode.getId(), e);
}
}
}