File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import (
24
24
25
25
"github.com/erda-project/erda/apistructs"
26
26
"github.com/erda-project/erda/bundle"
27
+ "github.com/erda-project/erda/modules/dop/conf"
27
28
)
28
29
29
30
// CDP pipeline 结构体
@@ -165,9 +166,13 @@ func (cdp *CDP) CdpNotifyProcess(pipelineEvent *apistructs.PipelineInstanceEvent
165
166
params := map [string ]string {
166
167
"pipelineID" : strconv .FormatUint (pipelineData .PipelineID , 10 ),
167
168
"notifyItemName" : notifyItem .DisplayName ,
169
+ "appID" : strconv .FormatUint (pipelineDetail .ApplicationID , 10 ),
168
170
"appName" : pipelineDetail .ApplicationName ,
171
+ "projectID" : strconv .FormatUint (pipelineDetail .ProjectID , 10 ),
169
172
"projectName" : pipelineDetail .ProjectName ,
173
+ "orgName" : pipelineDetail .OrgName ,
170
174
"branch" : pipelineDetail .Branch ,
175
+ "uiPublicURL" : conf .UIPublicURL (),
171
176
}
172
177
//失败情况尝输出错误日志
173
178
if notifyItem .Name == "pipeline_failed" {
Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ zh-CN:
78
78
- 信息:{{message}}
79
79
notify.pipeline.pipeline_success : 流水线运行成功
80
80
notify.pipeline.pipeline_success.markdown_template : |-
81
- ### {{projectName}}/{{appName}} 流水线{{pipelineID}}运行成功
81
+ ### {{projectName}}/{{appName}} 流水线 {{pipelineID}} 运行成功 {{uiPublicURL}}/{{orgName}}/dop/projects/{{projectID}}/apps/{{appID}}/pipeline?pipelineID={{pipelineID}}
82
82
notify.pipeline.pipeline_running : 流水线开始运行
83
83
notify.pipeline.pipeline_running.markdown_template : |-
84
84
### {{projectName}}/{{appName}} 流水线{{pipelineID}}开始运行
85
85
notify.pipeline.pipeline_failed : 流水线运行失败
86
86
notify.pipeline.pipeline_failed.markdown_template : |-
87
- ### {{projectName}}/{{appName}} 流水线{{pipelineID}}运行失败
87
+ ### {{projectName}}/{{appName}} 流水线 {{pipelineID}} 运行失败 {{uiPublicURL}}/{{orgName}}/dop/projects/{{projectID}}/apps/{{appID}}/pipeline?pipelineID={{pipelineID}}
88
88
{{failedDetail}}
89
89
notify.issue.issue_create : 创建任务事件
90
90
notify.issue.issue_create.markdown_template : " 事件【{{issue_title}}】{{content}}"
You can’t perform that action at this time.
0 commit comments