--- # [샘플] 조건 분기 (if) # condition-string / condition-int / condition-float / condition-bool / # condition-date / condition-version 으로 타입 지정 # on-true / on-false 로 분기 property: workspace: /path/to/project env: prod retryCount: 0 version: 2.1.0 pipeline: id: main workflow: # string 비교 - if: condition-string: == prod on-true: - exe: deploy-prod on-false: - exe: deploy-dev # int 비교 - if: condition-int: < 3 on-true: - exe: retry-build # version 비교 (자릿수 동일해야 함: 0.0.0 or 0.0.0.0) - if: condition-version: >= 2.0.0 on-true: - exe: new-flow commands: - command: Print id: deploy-prod param: message: "운영 배포 실행" - command: Print id: deploy-dev param: message: "개발 배포 실행" - command: Print id: retry-build param: message: "재시도 실행" - command: Print id: new-flow param: message: "신규 플로우 실행"