File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/Shared/Components/CICDHistory Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
27
27
URLS ,
28
28
ServerError ,
29
29
mapByKey ,
30
+ DeploymentNodeType ,
30
31
} from '../../../Common'
31
32
import {
32
33
FetchIdDataStatus ,
@@ -44,7 +45,7 @@ import { DeploymentHistoryConfigDiff } from './DeploymentHistoryConfigDiff'
44
45
import { GitChanges , Scroller } from './History.components'
45
46
import Artifacts from './Artifacts'
46
47
import TriggerDetails from './TriggerDetails'
47
- import { EMPTY_STATE_STATUS } from '../../constants'
48
+ import { DeploymentStageType , EMPTY_STATE_STATUS } from '../../constants'
48
49
import './cicdHistory.scss'
49
50
50
51
const HistoryLogs : React . FC < HistoryLogsProps > = ( {
@@ -82,11 +83,24 @@ const HistoryLogs: React.FC<HistoryLogsProps> = ({
82
83
envId : string
83
84
} > ( )
84
85
86
+ const getCDWorkflowType = ( ) => {
87
+ if ( triggerDetails . stage === DeploymentStageType . PRE ) {
88
+ return DeploymentNodeType . PRECD
89
+ }
90
+
91
+ if ( triggerDetails . stage === DeploymentStageType . POST ) {
92
+ return DeploymentNodeType . POSTCD
93
+ }
94
+
95
+ return DeploymentNodeType . CD
96
+ }
97
+
85
98
const paramsData = {
86
99
appId,
87
100
envId,
88
101
appName : `${ triggerDetails . helmPackageName } .tgz` ,
89
102
workflowId : triggerDetails . id ,
103
+ cdWorkflowType : getCDWorkflowType ( ) ,
90
104
}
91
105
92
106
const CDBuildReportUrl = `app/cd-pipeline/workflow/download/${ appId } /${ envId } /${ pipelineId } /${ triggerId } `
You can’t perform that action at this time.
0 commit comments