测试gitea部署
This commit is contained in:
parent
8b5b31e3a1
commit
b3d8e8dbbc
|
@ -108,7 +108,7 @@ public class DeployController {
|
||||||
@ApiOperation(value = "查询自动部署日志", httpMethod = "GET")
|
@ApiOperation(value = "查询自动部署日志", httpMethod = "GET")
|
||||||
@GetMapping("/deployment-log")
|
@GetMapping("/deployment-log")
|
||||||
public ResponseEntity<String> getDeploymentLog(
|
public ResponseEntity<String> getDeploymentLog(
|
||||||
@RequestParam(defaultValue = "20") int lines) {
|
@RequestParam(defaultValue = "100") int lines) {
|
||||||
try {
|
try {
|
||||||
Path logFile = Path.of(buildDir, "deploy.log");
|
Path logFile = Path.of(buildDir, "deploy.log");
|
||||||
if (!Files.exists(logFile)) {
|
if (!Files.exists(logFile)) {
|
||||||
|
|
Loading…
Reference in New Issue