Build artifact inventories only for pipeline run reports
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled
This commit is contained in:
@@ -46,10 +46,14 @@ func executePlan(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts
|
||||
}
|
||||
|
||||
func executePlanWithDependencies(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies) (*RunSummary, error) {
|
||||
return withLockedInvocation(ctx, cfg, plan, opts, dependencies, executeSelectedStages)
|
||||
result, err := withLockedInvocation(ctx, cfg, plan, opts, dependencies, executeSelectedStages)
|
||||
if result == nil {
|
||||
return nil, err
|
||||
}
|
||||
return result.runSummary(err == nil), err
|
||||
}
|
||||
|
||||
func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies, operation func(*invocationRuntime) error) (summary *RunSummary, resultErr error) {
|
||||
func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies, operation func(*invocationRuntime) error) (result *invocationResult, resultErr error) {
|
||||
dependencies = dependencies.normalized()
|
||||
runtime, err := prepareInvocation(ctx, cfg, plan, opts, dependencies)
|
||||
if err != nil {
|
||||
@@ -76,13 +80,10 @@ func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedP
|
||||
resultErr = errors.Join(resultErr, fmt.Errorf("release session lock: %w", releaseErr))
|
||||
}
|
||||
}
|
||||
if summary != nil {
|
||||
summary.Complete = resultErr == nil
|
||||
}
|
||||
}()
|
||||
defer func() {
|
||||
if runtime.started {
|
||||
summary, resultErr = finalizeInvocation(runtime, resultErr)
|
||||
result, resultErr = finalizeInvocation(runtime, resultErr)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user