3 ms·
TIL about the anchor property (&) and the alias indicator (*) which allow you to reuse previously defined blocks without repeating yourself: definitions:
by niux 3y ago
TIL about the anchor property (&) and the alias indicator (*) which allow you to reuse previously defined blocks without repeating yourself:
definitions:
steps:
- step: &build-test
name: Build and test
script:
- mvn package
artifacts:
- target/**
pipelines:
branches:
develop:
- step: *build-test
main:
- step: *build-test