Below are some hints to use Azure pipeline
1. If a variable is dependent on another, then the latter should be a constant. If both are evaludated from a non-constant expression then the value may not be correct. E.g.
2. Quote the parameters otherwise the value may not be considered as string.
E.g. stage S1 is fine whereas S2 will throw an error.
3. Use |
for convenience. E.g.
4. Use single quotes to escape :
in script.
E.g. Script S1 is fine whereas S2 throws errors
5. Use dependsOn
to ensure job dependency. succeeded()
does not ensure that. E.g.