For example, if your code repo name is sayhi, if you do not use the alias, by default the module name will be sayhi, when you invoke the task: SayHI, then you invoke: sayhi.SayHI, with the alias like below example, named himodule, you invoke it as: himodule.SayHI instead
For the below field with a prefix _ in the example, it means that is the implicit value it will hold when above logic applied
For the below field with a prefix :> in the example, it means that it demands it to be configured as mandatory to continue
- repo: https://github.com/up/sayhi.git
alias: himodule
rules:
- repo: https://github.com/up/sayhi.git
_dir: sayhi
_alias: sayhi
_version: master
_iid: noname
The pullpolicy is the policy used to clone and pull git repo, there are three types of policies:
rules:
- repo: https://github.com/up/sayhi.git
pullpolicy: manual | always | skip
rules:
- repo: https://github.com/up/sayhi.git
dir: himodule
_alias: himodule
_version: master
_iid: noname
rules:
- repo: https://github.com/up/sayhi.git
subdir: a/b
_dir: sayhi
:>alias: require setup to make it clear what the module name is
_version: master
_iid: noname
rules:
- repo: https://github.com/up/sayhi.git
version: 1.0.0
_dir: sayhi
_alias: sayhi
_iid: noname
rules:
- repo: https://github.com/up/sayhi.git
alias: hi
_version: master
_dir: sayhi
_iid: noname
rules:
- repo: https://github.com/up/sayhello.git
version: abc123e
_alias: sayhello
_dir: sayhello
_iid: noname
rules:
- dir: c/d
:>alias: require setup to make it clear what the module name is
_iid: noname
rules:
- dir: /etc/c/d
:>alias: require setup to make it clear what the module name is
_iid: noname
rules:
- dir: /etc/c/d
:>alias: require setup to make it clear what the module name is
iid: dev