Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
console
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
console
Commits
cf2e61b1
Commit
cf2e61b1
authored
Aug 21, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't return the whole build
parent
5ca9803e
Pipeline
#4831
passed with stages
in 1 minute and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
console-api/src/app.controller.ts
console-api/src/app.controller.ts
+1
-1
console-api/src/app.service.ts
console-api/src/app.service.ts
+2
-1
No files found.
console-api/src/app.controller.ts
View file @
cf2e61b1
...
...
@@ -115,7 +115,7 @@ export class AppController {
description
:
'
app 的 tar.zst 文件
'
,
type
:
FileUploadDto
,
})
@
ApiCreatedResponse
({
type
:
B
uild
ReturnMessageDto
})
@
ApiCreatedResponse
({
type
:
B
lank
ReturnMessageDto
})
async
makeBuild
(
@
FetchMyCardUser
()
user
:
MyCardUser
,
@
Param
(
'
id
'
)
id
:
string
,
...
...
console-api/src/app.service.ts
View file @
cf2e61b1
...
...
@@ -193,7 +193,8 @@ export class AppService extends ConsoleLogger {
const
result
=
await
this
.
packager
.
build
(
stream
,
app
.
packagePrefix
,
previousTracingBuildChecksums
);
build
.
checksum
=
result
.
checksum
;
build
.
archives
=
result
.
archives
;
return
new
ReturnMessageDto
(
201
,
'
success
'
,
await
this
.
db
.
getRepository
(
Build
).
save
(
build
));
await
this
.
db
.
getRepository
(
Build
).
save
(
build
);
return
new
BlankReturnMessageDto
(
201
,
'
success
'
);
}
catch
(
e
)
{
this
.
error
(
`Build
${
app
.
id
}
${
JSON
.
stringify
(
depotDto
.
toActual
)}
${
build
.
version
}
failed:
${
e
.
toString
()}
`
);
throw
new
BlankReturnMessageDto
(
500
,
'
Build failed
'
).
toException
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment