in lib/graph.py [0:0]
def _make_cmd_node(complete, started, outcome, pipeline_name, description,
command):
cmd_style = {"style": "filled"}
if complete and outcome == "success":
cmd_style["fillcolor"] = "#90caf9"
elif complete and outcome == "fail_ignored":
cmd_style["fillcolor"] = "#ffecb3"
elif complete and outcome == "fail":
cmd_style["fillcolor"] = "#ef9a9a"
elif not complete and started:
cmd_style["fillcolor"] = "#ffffff"
elif not complete and not started:
cmd_style["fillcolor"] = "#bfbfbf"
cmd_style["fontcolor"] = "#4d4d4d"
elif complete:
raise RuntimeError("Unknown outcome '%s'" % outcome)
else:
cmd_style["fillcolor"] = "#eceff1"
return lib.graph.CommandNode(
pipeline_name, description, command, **cmd_style)