Add link to builds in job page

Since the introduction of the tree view of the jobs there is no
workflow anymore to directly get to the build results of this
job. Especially when working with periodic jobs it's now more
cumbersome to get to these result. Thus add a link to the build
results on the job page.

Change-Id: Ia5c9dcbf91bb606ce0bab0cfaea1f406e95c8630
This commit is contained in:
Tobias Henkel 2019-03-31 15:10:23 +02:00
parent 5b7c278eb2
commit 02545ca1bf
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 8 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class JobVariant extends React.Component {
const rows = []
const jobInfos = [
'description', 'context', 'status',
'description', 'context', 'builds', 'status',
'parent', 'attempts', 'timeout', 'semaphore', 'implied_branch',
'nodeset', 'variables',
]
@ -98,6 +98,13 @@ class JobVariant extends React.Component {
showBranch={true}/>
)
}
if (label === 'builds') {
value = (
<Link to={this.props.tenant.linkPrefix + '/builds?job_name=' + variant.name}>
build history
</Link>
)
}
if (label === 'status') {
value = this.renderStatus(variant)
}