From 8c21e2f7fba40ca22c0b39d2e4c9f7ec23e219e2 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 25 Dec 2020 20:35:34 +0300 Subject: [PATCH] Revert "Allocate task's local index ID before only_if filtration (#204)" (#208) This reverts commit 2f0d1d70d4b4f859df77686e6ffd2ea7a327a1b7. --- pkg/parser/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 6a947e64..dda7b778 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -110,7 +110,6 @@ func (p *Parser) parseTasks(tree *node.Node) ([]task.ParseableTaskLike, error) { } taskLike.SetID(p.NextTaskID()) - taskLike.SetIndexWithinBuild(p.NextTaskLocalIndex()) // Set task's name if not set in the definition if taskLike.Name() == "" { @@ -133,6 +132,8 @@ func (p *Parser) parseTasks(tree *node.Node) ([]task.ParseableTaskLike, error) { continue } + taskLike.SetIndexWithinBuild(p.NextTaskLocalIndex()) + tasks = append(tasks, taskLike) } }