From 09bb0a6aef365de7465bac6417fcf256930f7443 Mon Sep 17 00:00:00 2001 From: hx <1014231151@qq.com> Date: Tue, 5 Jul 2022 17:31:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=BC=BAshell=5Fnode=20script?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=94=AF=E6=8C=81=E6=95=B0=E7=BB=84=E5=92=8C?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guide/shell-node.md | 61 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/guide/shell-node.md b/guide/shell-node.md index d04348e..57e62fd 100644 --- a/guide/shell-node.md +++ b/guide/shell-node.md @@ -31,20 +31,52 @@ workflow: targets: - shell_node type: start - shell_node: + shell_node1: sources: - start targets: - - end + - shell_node2 image: ubuntu:18.04 environment: aaa: aaa${global.abc} bBb: bbb666 CCC: ccc666 + # 数组形式 script: - echo $AAA - echo $BBB - echo $CCC + shell_node2: + sources: + - shell_node1 + targets: + - shell_node3 + image: ubuntu:18.04 + environment: + aaa: aaa${global.abc} + bBb: bbb666 + CCC: ccc666 + # 字符串形式,v2.5.0版本开始支持 + script: | + echo $AAA + echo $BBB + echo $CCC + shell_node3: + sources: + - shell_node2 + targets: + - end + image: ubuntu:18.04 + environment: + aaa: aaa${global.abc} + bBb: bbb666 + CCC: ccc666 + # 数组+字符串形式,v2.5.0版本开始支持 + script: + - | + echo $AAA + echo $BBB + - echo $CCC end: sources: - shell_node @@ -60,7 +92,7 @@ global: abc: abc pipeline: - shell_node: + shell_node1: image: ubuntu:18.04 environment: aaa: aaa${global.abc} @@ -70,6 +102,29 @@ pipeline: - echo $AAA - echo $BBB - echo $CCC + shell_node2: + image: ubuntu:18.04 + environment: + aaa: aaa${global.abc} + bBb: bbb666 + CCC: ccc666 + # 字符串形式,v2.5.0版本开始支持 + script: | + echo $AAA + echo $BBB + echo $CCC + shell_node3: + image: ubuntu:18.04 + environment: + aaa: aaa${global.abc} + bBb: bbb666 + CCC: ccc666 + # 数组+字符串形式,v2.5.0版本开始支持 + script: + - | + echo $AAA + echo $BBB + - echo $CCC ``` ### 使用内置输入参数 -- Gitee