mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 20:08:40 +08:00
fix build rollback
This commit is contained in:
parent
8c709f57d2
commit
1b105b4076
@ -94,7 +94,7 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
@Builder
|
||||
@Slf4j
|
||||
public class ReleaseManage implements Runnable {
|
||||
public class ReleaseManage {
|
||||
|
||||
private final UserModel userModel;
|
||||
private final Integer buildNumberId;
|
||||
@ -594,10 +594,15 @@ public class ReleaseManage implements Runnable {
|
||||
logRecorder.system("分发结果:{}", status.getDesc());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
/**
|
||||
* 回滚
|
||||
*/
|
||||
public void rollback() {
|
||||
try {
|
||||
BaseServerController.resetInfo(userModel);
|
||||
// 重新标记为发布中
|
||||
this.updateStatus(BuildStatus.PubIng);
|
||||
//
|
||||
boolean start = this.start();
|
||||
if (start) {
|
||||
this.updateStatus(BuildStatus.PubSuccess);
|
||||
|
@ -179,7 +179,7 @@ public class BuildInfoManageController extends BaseServerController {
|
||||
.buildEnv(environmentMapBuilder)
|
||||
.build();
|
||||
//
|
||||
ThreadUtil.execute(manage);
|
||||
ThreadUtil.execute(manage::rollback);
|
||||
return JsonMessage.success("重新发布中");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user