100 lines
3.8 KiB
HTML
100 lines
3.8 KiB
HTML
<div class="triggered-build-description-element">
|
|
|
|
<span class="tbd-content" class="manual" ng-if="!build.trigger && !build.job_config.manual_user">
|
|
(Manually Triggered Build)
|
|
</span>
|
|
|
|
<span class="tbd-content" ng-if="!build.trigger && build.job_config.manual_user">
|
|
<i class="fa fa-user"></i> {{ build.job_config.manual_user }}
|
|
</span>
|
|
|
|
<!-- Full Commit Information -->
|
|
<span class="tbd-content" ng-if="build.job_config.trigger_metadata.commit_info" ng-switch on="build.trigger.service">
|
|
<!-- GitHub -->
|
|
<div ng-switch-when="github">
|
|
<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>
|
|
<div class="commit-information">
|
|
<span class="commit-who-when">
|
|
Authored
|
|
<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>
|
|
</div>
|
|
|
|
<!-- Git -->
|
|
<div ng-switch-when="custom-git">
|
|
<div class="commit-message">
|
|
{{ build.job_config.trigger_metadata.commit_info.message }}
|
|
</div>
|
|
<div class="commit-information">
|
|
<span class="commit-who-when">
|
|
Authored
|
|
<span am-time-ago="build.job_config.trigger_metadata.commit_info.date"></span>
|
|
<span class="commit-who">
|
|
{{ build.job_config.trigger_metadata.commit_info.author.username }}
|
|
</span>
|
|
</span>
|
|
<span>
|
|
{{ build.job_config.trigger_metadata.commit_sha }}
|
|
</span>
|
|
<span>
|
|
{{ build.job_config.trigger_metadata.ref }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</span>
|
|
|
|
<!-- Just commit SHA -->
|
|
<span class="tbd-content" ng-if="build.job_config.trigger_metadata && !build.job_config.trigger_metadata.commit_info && build.job_config.trigger_metadata.commit_sha" ng-switch on="build.trigger.service">
|
|
Triggered by commit
|
|
<!-- GitHub -->
|
|
<div ng-switch-when="github">
|
|
<span class="source-commit-link"
|
|
commit-sha="build.job_config.trigger_metadata.commit_sha"
|
|
url-template="getGitHubRepoURL(build) + '/commit/{sha}'"></span>
|
|
</div>
|
|
|
|
<!-- Git -->
|
|
<div ng-switch-when="custom-git">
|
|
<span>{{ build.job_config.trigger_metadata.commit_sha }}</span>
|
|
</div>
|
|
</span>
|
|
|
|
<!-- No information -->
|
|
<span class="tbd-content" ng-if="!build.job_config.trigger_metadata" ng-switch on="build.trigger.service">
|
|
Triggered by commit to
|
|
<!-- GitHub -->
|
|
<div ng-switch-when="github">
|
|
<i class="fa fa-github fa-lg" data-title="GitHub" data-container="body" bs-tooltip></i>
|
|
<a ng-href="{{ getGitHubRepoURL(build) }}" target="_new">
|
|
{{ build.trigger.config.build_source }}
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Git -->
|
|
<div ng-switch-when="custom-git">
|
|
<i class="fa fa-git fa-lg" data-title="git" data-container="body" bs-tooltip></i>
|
|
{{ build.trigger.config.build_source }}
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|