2015-02-26 22:45:28 +00:00
|
|
|
<div class="triggered-build-description-element">
|
2015-03-13 22:34:28 +00:00
|
|
|
|
2015-04-08 18:39:52 +00:00
|
|
|
<span class="tbd-content" class="manual" ng-if="!build.trigger && !build.job_config.manual_user">
|
2015-03-13 22:34:28 +00:00
|
|
|
(Manually Triggered Build)
|
|
|
|
</span>
|
|
|
|
|
2015-04-08 18:39:52 +00:00
|
|
|
<span class="tbd-content" ng-if="!build.trigger && build.job_config.manual_user">
|
2015-03-13 22:34:28 +00:00
|
|
|
<i class="fa fa-user"></i> {{ build.job_config.manual_user }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span ng-switch on="build.trigger.service" ng-if="build.trigger">
|
2015-02-26 22:45:28 +00:00
|
|
|
<!-- GitHub -->
|
|
|
|
<span ng-switch-when="github">
|
|
|
|
<!-- Full Commit Information -->
|
2015-04-08 18:39:52 +00:00
|
|
|
<span class="tbd-content" ng-if="build.job_config.trigger_metadata.commit_info">
|
2015-02-27 21:00:32 +00:00
|
|
|
<div class="commit-message">
|
|
|
|
<a ng-href="{{ getGitHubRepoURL(build) }}/commit/{{ build.job_config.trigger_metadata.commit_sha }}"
|
|
|
|
target="_blank">
|
|
|
|
{{ build.job_config.trigger_metadata.commit_info.message }}
|
|
|
|
</a>
|
|
|
|
</div>
|
2015-02-26 22:45:28 +00:00
|
|
|
<div class="commit-information">
|
|
|
|
<span class="commit-who-when">
|
2015-02-27 21:00:32 +00:00
|
|
|
Authored
|
2015-02-26 22:45:28 +00:00
|
|
|
<span am-time-ago="build.job_config.trigger_metadata.commit_info.date"></span>
|
|
|
|
<span class="commit-who">
|
|
|
|
<img ng-src="{{ build.job_config.trigger_metadata.commit_info.author.avatar_url }}">
|
|
|
|
<a ng-href="{{ build.job_config.trigger_metadata.commit_info.author.url }}"
|
|
|
|
target="_blank">
|
|
|
|
{{ build.job_config.trigger_metadata.commit_info.author.username }}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="source-commit-link"
|
|
|
|
commit-sha="build.job_config.trigger_metadata.commit_sha"
|
|
|
|
url-template="getGitHubRepoURL(build) + '/commit/{sha}'"></span>
|
|
|
|
<span class="source-ref-link"
|
|
|
|
ref="build.job_config.trigger_metadata.ref"
|
|
|
|
branch-template="getGitHubRepoURL(build) + '/tree/{branch}'"
|
|
|
|
tag-template="getGitHubRepoURL(build) + '/releases/tag/{tag}'"></span>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<!-- Just commit SHA -->
|
2015-04-08 18:39:52 +00:00
|
|
|
<span class="tbd-content" ng-if="build.job_config.trigger_metadata && !build.job_config.trigger_metadata.commit_info">
|
2015-02-26 22:45:28 +00:00
|
|
|
Triggered by commit
|
|
|
|
<span class="source-commit-link"
|
|
|
|
commit-sha="build.job_config.trigger_metadata.commit_sha"
|
|
|
|
url-template="getGitHubRepoURL(build) + '/commit/{sha}'"></span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<!-- No information -->
|
2015-04-08 18:39:52 +00:00
|
|
|
<span class="tbd-content" ng-if="!build.job_config.trigger_metadata">
|
2015-02-26 22:45:28 +00:00
|
|
|
Triggered by commit to
|
2015-04-08 18:39:52 +00:00
|
|
|
<i class="fa fa-github fa-lg" data-title="GitHub" data-container="body" bs-tooltip></i>
|
2015-02-26 22:45:28 +00:00
|
|
|
<a ng-href="{{ getGitHubRepoURL(build) }}" target="_new">
|
|
|
|
{{ build.trigger.config.build_source }}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<!-- Unknown -->
|
|
|
|
<span ng-switch-default></span>
|
|
|
|
</span>
|
2015-03-30 21:55:04 +00:00
|
|
|
</div>
|