post { failure { mail(from: "...", to: "...", subject: "UI build failed!", body: "For more information see the build log.") } }