feat: 展示 Jenkins 构建日志

This commit is contained in:
湛兮
2026-06-12 02:37:08 +08:00
parent a089eebee1
commit 7a91bd1c36
3 changed files with 168 additions and 2 deletions
+9
View File
@@ -20,6 +20,7 @@ import type {
IntegrationConfigStatus,
IntegrationVariableHelp,
IntegrationStatus,
JenkinsBuildLog,
JenkinsSyncSummary,
LoginPayload,
LoginResult,
@@ -402,6 +403,14 @@ export const devopsApi = {
return toJenkinsSyncSummary(data, projectList)
},
async getJenkinsLog(runId: string, start = 0): Promise<JenkinsBuildLog> {
const { data } = await http.get<JenkinsBuildLog>(`/deploy-runs/${runId}/jenkins-log`, {
params: { start },
})
lastDataSource = 'backend'
return data
},
async getAuditLogs(): Promise<AuditLogEntry[]> {
const { data } = await http.get<AuditLogEntry[]>('/audit-logs')
lastDataSource = 'backend'