diff --git a/services/tasks/alert.go b/services/tasks/alert.go index 4b2d2b23..e791a10b 100644 --- a/services/tasks/alert.go +++ b/services/tasks/alert.go @@ -8,6 +8,7 @@ import ( "strconv" "text/template" + "github.com/ansible-semaphore/semaphore/db" "github.com/ansible-semaphore/semaphore/pkg/task_logger" "github.com/ansible-semaphore/semaphore/util" "github.com/ansible-semaphore/semaphore/util/mailer" @@ -364,7 +365,7 @@ func (t *TaskRunner) alertInfos() (string, string) { if t.Task.Version != nil { version = *t.Task.Version - } else if t.Task.GetIncomingVersion(t.pool.store) != nil { + } else if t.Template.Type != db.TemplateTask { version = "build " + *t.Task.GetIncomingVersion(t.pool.store) } else { version = ""