Preserve partial run results and terminal failure causes
This commit is contained in:
@@ -20,14 +20,16 @@ type executionInput struct {
|
||||
}
|
||||
|
||||
type runReport struct {
|
||||
Campaign string `json:"campaign"`
|
||||
SessionID string `json:"session_id"`
|
||||
RunID string `json:"run_id"`
|
||||
Stages []string `json:"stages"`
|
||||
Executed []string `json:"executed"`
|
||||
Skipped []string `json:"skipped"`
|
||||
ArtifactTargets []string `json:"artifact_targets"`
|
||||
Complete bool `json:"complete"`
|
||||
Campaign string `json:"campaign"`
|
||||
SessionID string `json:"session_id"`
|
||||
RunID string `json:"run_id"`
|
||||
Stages []string `json:"stages"`
|
||||
Executed []string `json:"executed"`
|
||||
Skipped []string `json:"skipped"`
|
||||
ArtifactTargets []string `json:"artifact_targets"`
|
||||
StageResults []RunStageResult `json:"stage_results"`
|
||||
AvailableArtifacts []RunArtifact `json:"available_artifacts"`
|
||||
Complete bool `json:"complete"`
|
||||
}
|
||||
|
||||
func checkExecutionInput(input *executionInput) error {
|
||||
@@ -137,5 +139,5 @@ func executeSelectedPipeline(ctx context.Context, input *executionInput, deps co
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
return &runReport{Campaign: config.CampaignID(cfg.Campaign), SessionID: summary.SessionID, RunID: summary.RunID, Stages: input.plan.Names(), Executed: summary.Executed, Skipped: summary.Skipped, ArtifactTargets: effective.Keys(), Complete: err == nil}, err
|
||||
return &runReport{Campaign: config.CampaignID(cfg.Campaign), SessionID: summary.SessionID, RunID: summary.RunID, Stages: input.plan.Names(), Executed: summary.Executed, Skipped: summary.Skipped, ArtifactTargets: effective.Keys(), StageResults: summary.StageResults, AvailableArtifacts: summary.AvailableArtifacts, Complete: err == nil}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user