github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/easy/yamlx/testdata/variable_circular_2.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 key2: 12 - sub1: 12345 13 sub2: "abcde" 14 - sub3: "@@var test_vars_k2" 15 - step: &deploy 16 name: Deploy 17 deployment: test # @@var deployment 18 script: 19 - ./deploy.sh target/my-app.jar 20 21 pipelines: 22 branches: 23 develop: 24 - step: *build-test 25 - step: *deploy 26 main: 27 - step: *build-test 28 - step: # @@var main_step_1 29 <<: *deploy 30 deployment: production 31 trigger: manual 32 33 vars: 34 k1: "@@var script1" 35 k2: # @@var test_vars_k2 36 k3: "@@var test_var" 37 k4: 38 - '@@var deployment ' 39 k5: 40 k6: 41 k7: '@@var main_step_1'