[JENKINS-36586] add table action extension points for Pipeline Detail -> [Activity, Branches, Pull Requests]
This commit is contained in:
parent
ebda6f3f31
commit
98eaac7c2d
|
@ -86,6 +86,7 @@ export class Activity extends Component {
|
|||
{ label: 'Message', className: 'message' },
|
||||
{ label: 'Duration', className: 'duration' },
|
||||
{ label: 'Completed', className: 'completed' },
|
||||
{ label: '', className: 'actions' },
|
||||
];
|
||||
|
||||
return (<main>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import { CommitHash, ReadableDate } from '@jenkins-cd/design-language';
|
||||
import { LiveStatusIndicator, WeatherIcon } from '@jenkins-cd/design-language';
|
||||
import Extensions from '@jenkins-cd/js-extensions';
|
||||
import RunPipeline from './RunPipeline.jsx';
|
||||
import { buildRunDetailsUrl } from '../util/UrlUtils';
|
||||
|
||||
|
@ -54,7 +55,10 @@ export default class Branches extends Component {
|
|||
<td><CommitHash commitId={commitId} /></td>
|
||||
<td>{msg || '-'}</td>
|
||||
<td><ReadableDate date={endTime} liveUpdate /></td>
|
||||
<td><RunPipeline organization={organization} pipeline={pipelineName} branch={name} /></td>
|
||||
<td>
|
||||
<RunPipeline organization={organization} pipeline={pipelineName} branch={name} />
|
||||
<Extensions.Renderer extensionPoint="jenkins.pipeline.branches.list.action" />
|
||||
</td>
|
||||
</tr>);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import { LiveStatusIndicator, ReadableDate } from '@jenkins-cd/design-language';
|
||||
import Extensions from '@jenkins-cd/js-extensions';
|
||||
import RunPipeline from './RunPipeline.jsx';
|
||||
|
||||
const { object } = PropTypes;
|
||||
|
@ -52,7 +53,10 @@ export default class PullRequest extends Component {
|
|||
<td>{title || '-'}</td>
|
||||
<td>{author || '-'}</td>
|
||||
<td><ReadableDate date={endTime} liveUpdate /></td>
|
||||
<td><RunPipeline organization={organization} pipeline={pipelineName} branch={name} /></td>
|
||||
<td>
|
||||
<RunPipeline organization={organization} pipeline={pipelineName} branch={name} />
|
||||
<Extensions.Renderer extensionPoint="jenkins.pipeline.pullrequests.list.action" />
|
||||
</td>
|
||||
</tr>);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ import {
|
|||
CommitHash, ReadableDate, LiveStatusIndicator, TimeDuration,
|
||||
}
|
||||
from '@jenkins-cd/design-language';
|
||||
import Extensions from '@jenkins-cd/js-extensions';
|
||||
import moment from 'moment';
|
||||
import { buildRunDetailsUrl } from '../util/UrlUtils';
|
||||
|
||||
|
@ -72,6 +73,9 @@ export default class Runs extends Component {
|
|||
<td>{changeset && changeset.comment || '-'}</td>
|
||||
<td><TimeDuration millis={durationMillis} liveUpdate={running} /></td>
|
||||
<td><ReadableDate date={endTime} liveUpdate /></td>
|
||||
<td>
|
||||
<Extensions.Renderer extensionPoint="jenkins.pipeline.activity.list.action" />
|
||||
</td>
|
||||
</tr>);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue