@devops-flow/devops-flow-pipeline-detail 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ import { Loading } from '@teamix/ui';
|
|
|
8
8
|
import imgSrc from "../../../assets/img-src";
|
|
9
9
|
import intl from "../../../locale";
|
|
10
10
|
import "./index.scss";
|
|
11
|
-
import { GetLatestPipelineRun,
|
|
11
|
+
import { GetLatestPipelineRun, GetPipelineRun } from "../../../utils/api";
|
|
12
12
|
import PipelineInstance from "../../common/teambition/pipeline-instance-new";
|
|
13
13
|
import RunPipelineButton from "../../common/teambition/run-pipeline-btn";
|
|
14
14
|
import MessagePage from "../../common/teambition/message-page";
|
|
@@ -44,7 +44,7 @@ var Current = function Current(_ref) {
|
|
|
44
44
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
45
45
|
while (1) switch (_context.prev = _context.next) {
|
|
46
46
|
case 0:
|
|
47
|
-
api = pipelineRunId ?
|
|
47
|
+
api = pipelineRunId ? GetPipelineRun(pipelineId, pipelineRunId) : GetLatestPipelineRun(pipelineId);
|
|
48
48
|
api.then(function (res) {
|
|
49
49
|
setLoading(false);
|
|
50
50
|
setInstance(res);
|
package/es/utils/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getFlowDataApi: (data: any) => Promise<any>;
|
|
2
2
|
export declare const GetLatestPipelineRun: (pipelineId: any) => Promise<any>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const GetPipelineRun: (pipelineId: any, pipelineRunId: any) => Promise<any>;
|
|
4
4
|
export declare const GetPipelineJobSteps: (pipelineId: any, pipelineRunId: any, jobId: any) => Promise<any>;
|
|
5
5
|
export declare const GetPipelineJobStepLog: ({ pipelineId, pipelineRunId, jobId, buildId, stepIndex, offset }: {
|
|
6
6
|
pipelineId: any;
|
package/es/utils/api/index.js
CHANGED
|
@@ -47,11 +47,11 @@ export var GetLatestPipelineRun = function GetLatestPipelineRun(pipelineId) {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
// 查询流水线运行历史
|
|
50
|
-
export var
|
|
50
|
+
export var GetPipelineRun = function GetPipelineRun(pipelineId, pipelineRunId) {
|
|
51
51
|
var data = {
|
|
52
|
-
action: '
|
|
52
|
+
action: 'GetPipelineRun',
|
|
53
53
|
method: 'GET',
|
|
54
|
-
actionPath: 'https://{domain}/oapi/v1/flow/
|
|
54
|
+
actionPath: 'https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/pipelineRuns/{pipelineRunId}',
|
|
55
55
|
pathParams: {
|
|
56
56
|
pipelineId: pipelineId,
|
|
57
57
|
pipelineRunId: pipelineRunId
|