X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fbest-practices.rst;h=fa78db527c673d9e093db16193aadbe2a77fe1bd;hb=492598352aa58d3aace7f944ef8e7a8a2e82c8a2;hp=a9d4d20bad9d87acfda6a7a529e92a001ee7cabd;hpb=f1d2d262e4e1b095c2d2c577c042404f1f3d4e1c;p=releng%2Fglobal-jjb.git diff --git a/docs/best-practices.rst b/docs/best-practices.rst index a9d4d20b..fa78db52 100644 --- a/docs/best-practices.rst +++ b/docs/best-practices.rst @@ -337,12 +337,18 @@ variable. JJB will fill in whatever is in the defaults configuration. Variable expansion order of precedence seems to be: -1. project section definition -2. job-template variable definition -3. defaults.yaml variable definition +1. job-group section definition +2. project section definition +3. job-template variable definition +4. defaults.yaml variable definition .. note:: Defaults set variables in job-templates and are NOT used in Macros. +global-jjb should not provide job-group definitions and leave it up to users of +global-jjb to create their own as a job-group as a variable defined in a job +group the highest precendence. Global JJB should strive to be purely a +job-template and macro library for downstream consumers. + Final thoughts --------------