Skip to content

Commit 269feb4

Browse files
committed
set job status to todo when re-edit release plan
Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>
1 parent afec015 commit 269feb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/microservice/aslan/core/release_plan/service/release_plan.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,14 @@ func UpdateReleasePlanStatus(c *handler.Context, planID, targetStatus string, is
884884
plan.WaitForAllDoneExternalCheckTime = 0
885885
plan.ExternalCheckFailedReason = ""
886886

887+
for _, job := range plan.Jobs {
888+
job.Status = config.ReleasePlanJobStatusTodo
889+
job.LastStatus = config.ReleasePlanJobStatusTodo
890+
job.Updated = false
891+
job.ExecutedBy = ""
892+
job.ExecutedTime = 0
893+
}
894+
887895
cancelReleasePlanApproval(c, plan)
888896
case config.ReleasePlanStatusExecuting:
889897
if plan.Approval != nil && plan.Approval.Enabled == true && plan.Approval.Status != config.StatusPassed {

0 commit comments

Comments
 (0)