Skip to content

Commit

Permalink
fix(execution): IsSucceeding negates IsFailing
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Oct 20, 2024
1 parent da5b928 commit b3b396c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/Nuke.Build/NukeBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,7 @@ protected static int Execute<T>(params Expression<Func<T, Target>>[] defaultTarg
internal IEnumerable<string> TargetNames => ExecutableTargetFactory.GetTargetProperties(GetType()).Select(x => x.GetDisplayShortName());
internal IEnumerable<string> HostNames => Host.AvailableTypes.Select(x => x.Name);

public bool IsSucceeding => ExecutionPlan.All(x => x.Status is
ExecutionStatus.Succeeded or
ExecutionStatus.Skipped or
ExecutionStatus.Collective);
public bool IsSucceeding => !IsFailing;

public bool IsFailing => ExecutionPlan.Any(x => x.Status is
ExecutionStatus.Failed or
Expand Down

0 comments on commit b3b396c

Please sign in to comment.