diff --git a/src/template.js b/src/template.js index d304f3e..b2bcd90 100644 --- a/src/template.js +++ b/src/template.js @@ -1,12 +1,12 @@ module.exports = ` ### Jenkins Builds -| :grey_question: | Commit | When | Platform | Build | Duration | Result | +| :grey_question: | Commit | Build | Finished | Duration | Platform | Result | |-|-|-|-|-|-|-| {% for b in builds -%} {%- if b.success -%} -| :heavy_check_mark: | {{ b.commit }} | {{ b.meta.created | date }} | \`{{ b.platform }}\` | [#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:package: {{ b.platform }}]({{ b.pkg_url }}) | +| :heavy_check_mark: | {{ b.commit }} | [#{{ b.id }}]({{ b.url }}) | {{ b.meta.created | date }} | {{ b.duration }} | \`{{ b.platform }}\` | [:package: package]({{ b.pkg_url }}) | {% else -%} -| :x: | {{ b.commit }} | {{ b.meta.created | date }} | \`{{ b.platform }}\` | [#{{ b.id }}]({{ b.url }}) | {{ b.duration }} | [:page_facing_up: build log]({{ b.pkg_url }}consoleText) | +| :x: | {{ b.commit }} | [#{{ b.id }}]({{ b.url }}) | {{ b.meta.created | date }} | {{ b.duration }} | \`{{ b.platform }}\` | [:page_facing_up: build log]({{ b.pkg_url }}consoleText) | {% endif -%} {%- endfor -%} `