We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfe9de commit 6a5cee5Copy full SHA for 6a5cee5
tree/src/main/java/com/flowci/tree/yml/StepYml.java
@@ -49,6 +49,8 @@ public class StepYml extends YmlBase<StepNode> {
49
50
private String pwsh; // powershell script
51
52
+ private String script; // keep it to compatible old yaml
53
+
54
private String plugin;
55
56
private List<String> exports = new LinkedList<>();
@@ -87,6 +89,11 @@ public StepNode toNode(Node parent, int index) {
87
89
setSteps(node);
88
90
}
91
92
+ // backward compatible, set script to bash
93
+ if (StringHelper.hasValue(script) && !StringHelper.hasValue(bash)) {
94
+ node.setBash(script);
95
+ }
96
97
return node;
98
99
0 commit comments