Merge ~sylvain-pineau/checkbox-ng:special_functions_in_templates into checkbox-ng:master
Status: | Rejected |
---|---|
Rejected by: | Sylvain Pineau |
Proposed branch: | ~sylvain-pineau/checkbox-ng:special_functions_in_templates |
Merge into: | checkbox-ng:master |
Diff against target: |
23 lines (+5/-0) 1 file modified
plainbox/impl/unit/validators.py (+5/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Checkbox Developers | Pending | ||
Review via email: mp+389650@code.launchpad.net |
Description of the change
Allow a combination of the template resource parameters and use of special functions such as __checkbox_env__ in templated jobs.
Use case developed in the checkbox-desktop snap where the resource creates jobs for each GTK theme but the snap channel is decided via config.:
unit: template
template-engine: jinja2
template-resource: gtk_theme
id: snaps/gnome-
plugin: attachment
depends: snaps/gnome-
command:
[ -f $PLAINBOX_
cat $PLAINBOX_
Why is a special function desirable for this purpose as opposed to being able to access a parameter from another resource (e.g. the environment resource)?