main
ROOT /
pages /
variable-substitution.md
7 lines | ISO-8859-1 | 801 bytes

Variable can be inserted into various fields of project build spec by surrounding with @. The list of available variables will be prompted when @ is typed. Below is some examples of variable substitutions (assume project name is foobar):

Original Substitued Explanation
ubuntu-@projectName@ ubuntu-foobar contents enclosed with @ is variable and will be substituted
ubuntu-@@projectName@@ ubuntu-@projectName@ @@ will be interpreted as literal @
ubuntu-@projectName@@ OneDev will complain about invalid variable reference @projectName@ will be interpreted as a variable reference, and the last @ is singled out. The correct form should either be ubuntu-@projectName@@@, or ubuntu-@projectName@@someOtherVar@
Please wait...
Page is in error, reload to recover