diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-10-11 13:46:23 +0100 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-10-16 15:26:37 +0100 |
commit | cb1338dedc3873ac81488df9dd3aa6f048e6b02f (patch) | |
tree | c94cfe05a88b87bcd8cda1ae5b825ac475601b80 /bitbake/lib/toaster/bldviewer/templates/build.html | |
parent | faf8f8660fae26a14578738b642fdeb08bcb9d54 (diff) | |
download | poky-cb1338dedc3873ac81488df9dd3aa6f048e6b02f.tar.gz |
bitbake: add toaster code to bitbake
This patch adds the Toaster component to Bitbake.
Toaster is a module designed to record the progress of a
Bitbake build, and data about the resultant artifacts.
It contains a web-based interface and a REST API allowing
post-facto inspection of the build process and artifacts.
Features present in this build:
* toaster start script
* relational data model
* Django boilerplate code
* the REST API
* the Simple UI web interface
This patch has all the development history squashed together.
Code portions contributed by Calin Dragomir <calindragomir@gmail.com>.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'bitbake/lib/toaster/bldviewer/templates/build.html')
-rw-r--r-- | bitbake/lib/toaster/bldviewer/templates/build.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldviewer/templates/build.html b/bitbake/lib/toaster/bldviewer/templates/build.html new file mode 100644 index 0000000000..ab6e19643b --- /dev/null +++ b/bitbake/lib/toaster/bldviewer/templates/build.html | |||
@@ -0,0 +1,43 @@ | |||
1 | {% extends "basetable.html" %} | ||
2 | |||
3 | {% block pagename %} | ||
4 | <h1>Toaster - Builds</h1> | ||
5 | {% endblock %} | ||
6 | |||
7 | {% block pagetable %} | ||
8 | |||
9 | {% load projecttags %} | ||
10 | <tr> | ||
11 | <th>Outcome</th> | ||
12 | <th>Started On</th> | ||
13 | <th>Completed On</th> | ||
14 | <th>Target</th> | ||
15 | <th>Machine</th> | ||
16 | <th>Time</th> | ||
17 | <th>Errors</th> | ||
18 | <th>Warnings</th> | ||
19 | <th>Output</th> | ||
20 | <th>Log</th> | ||
21 | <th>Bitbake Version</th> | ||
22 | <th>Build Name</th> | ||
23 | </tr> | ||
24 | {% for build in builds %} | ||
25 | <tr class="data"> | ||
26 | <td><a href="{% url configuration build.id %}">{{build.get_outcome_display}}</a></td> | ||
27 | <td>{{build.started_on}}</td> | ||
28 | <td>{{build.completed_on}}</td> | ||
29 | <td>{% for t in build.target_set.all %}<a href="{% url tpackage build.id t.id %}">{{t.target}}</a>{% if t.is_image %} (Img){% endif %}<br/>{% endfor %}</td> | ||
30 | <td>{{build.machine}}</td> | ||
31 | <td>{% time_difference build.started_on build.completed_on %}</td> | ||
32 | <td>{{build.errors_no}}:{% if build.errors_no %}{% for error in logs %}{% if error.build == build %}{% if error.level == 2 %}<p>{{error.message}}</p>{% endif %}{% endif %}{% endfor %}{% else %}None{% endif %}</td> | ||
33 | <td>{{build.warnings_no}}:{% if build.warnings_no %}{% for warning in logs %}{% if warning.build == build %}{% if warning.level == 1 %}<p>{{warning.message}}</p>{% endif %}{% endif %}{% endfor %}{% else %}None{% endif %}</td> | ||
34 | <td>{% if build.outcome == 0 %}{% for t in build.target_set.all %}{% if t.is_image %}{{build.image_fstypes}}{% endif %}{% endfor %}{% endif %}</td> | ||
35 | <td>{{build.cooker_log_path}}</td> | ||
36 | <td>{{build.bitbake_version}}</td> | ||
37 | <td>{{build.build_name}}</td> | ||
38 | </tr> | ||
39 | |||
40 | {% endfor %} | ||
41 | {% endblock %} | ||
42 | |||
43 | |||