-
Notifications
You must be signed in to change notification settings - Fork 18
New build email template
Ondrej Rafaj edited this page May 29, 2019
·
2 revisions
For basic variables and template syntax please refer to Basic email template variables
For advanced template syntax please refer to [Vapor / Leaf templates documentation page](https://docs.vapor.codes/3.0/leaf/overview/
Apart from basic user and system variables mentioned above, the following is available for this template:
-
#{build.xxx}
- Build info -
#{user.xxx}
- User which uploaded the build (optional, only available for manual uploads) -
#{link}
- Link to the build
To add an icon of your build, you could for example do:
<img src="#{info.config.url}/builds/#{build.id}/icon" alt="#{build.name}" />
The available data is as follows:
{
"link": "http://localhost:8080/build/16B34820-4C84-4BEB-8D31-D2B7E63233AD",
"build": {
"id": "16B34820-4C84-4BEB-8D31-D2B7E63233AD",
"built": 541351765,
"version": "1.9",
"size": 12360248,
"size_total": 12389525,
"cluster_id": "4F7FF5B3-BE65-49AA-981C-EB27F3AB9206",
"platform": "ios",
"identifier": "Marco-Tini.Cocktail",
"created": 580861484.18807304,
"min_sdk": "1",
"icon": "0927f76784567f8843edd49bc0eff29f",
"team_id": "283B29FD-6E02-4437-9450-5B05CE615278",
"name": "Cocktail",
"build": "1"
},
"user": {
"id": "12F398EA-2270-4FDC-B30E-0B4B27868953",
"lastname": "Admin",
"registered": 580860059.49981403,
"firstname": "Super",
"username": "admin",
"email": "core@liveui.io",
"verified": true,
"su": true,
"disabled": false
}
}