github.com/jxskiss/gopkg/v2@v2.14.9-0.20240514120614-899f3e7952b4/easy/yamlx/testdata/ref_relative.yaml (about) 1 definitions: 2 steps: 3 - step: &build-test 4 name: Build and test 5 script: 6 - mvn package 7 artifacts: 8 - target/** 9 - step: &deploy 10 name: Deploy 11 deployment: test 12 script: 13 - ./deploy.sh target/my-app.jar 14 - "@@ref ./0" 15 - "@@ref ../script.0" 16 - "@@ref ..../0.step.script.0" 17 name1: "@@ref ./name" 18 name2: "@@ref ../name" 19 name3: "@@ref .../0.step.name" 20 name: "level2" 21 tostr: "@@ref ./step|@tostr" 22 23 pipelines: 24 branches: 25 develop: 26 - step: *build-test 27 - step: *deploy 28 main: 29 - step: *build-test 30 - step: 31 <<: *deploy 32 deployment: production 33 trigger: manual