github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/easy/yamlx/testdata/variable.yaml (about) 1 definitions: 2 steps: 3 - step: &build-test 4 name: Build and test 5 script: # @@var script1 6 - mvn package 7 artifacts: 8 - target/** 9 test_var: # @@var test_var 10 key1: value1 11 - step: &deploy 12 name: Deploy 13 deployment: test # @@var deployment 14 script: 15 - ./deploy.sh target/my-app.jar 16 17 pipelines: 18 branches: 19 develop: 20 - step: *build-test 21 - step: *deploy 22 main: 23 - step: *build-test 24 - step: # @@var main_step_1 25 <<: *deploy 26 deployment: production 27 trigger: manual 28 29 vars: 30 k1: "@@var script1" 31 k2: 32 k3: "@@var test_var" 33 k4: 34 - '@@var deployment ' 35 k5: 36 k6: 37 k7: '@@var main_step_1'