Commit 7769e696 authored by CaptainB's avatar CaptainB Committed by 刘瑞斌
Browse files

fix(消息通知): 修复jenkins通知跳转

--bug=1008368 --user=刘瑞斌 【消息通知】jenkins执行接口用例的消息通知,跳转错误 https://www.tapd.cn/55049933/s/1075408
parent 046dfc3d
Showing with 12 additions and 1 deletion
+12 -1
......@@ -124,7 +124,18 @@ export function getUrl(d) {
let url = "/#";
switch (d.resourceType) {
case "JENKINS_TASK" :
url += "/track/plan/all";
// jenkins 跳转需要特殊处理
if (d.content.indexOf("接口用例") > -1) {
url += "/api/definition?caseId=" + d.resourceId;
} else if (d.content.indexOf("性能测试") > -1) {
url += "/performance/report/view/" + d.resourceId;
} else if (d.content.indexOf("接口测试") > -1) {
url += "/api/automation/report/view/" + d.resourceId;
} else if (d.content.indexOf("测试计划") > -1) {
url += "/track/plan/view/" + d.resourceId;
} else {
url += "/track/plan/all";
}
break;
case "TEST_PLAN_TASK" :
url += "/track/plan/view/" + d.resourceId;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment