You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
protectedoverridevoidOnTargetSucceeded(stringtarget){base.OnTargetSucceeded(target);if(!target.Equals(nameof(Tests)))return;vartestsTarget=SucceededTargets.SingleOrDefault(executableTarget =>executableTarget.Name.Equals(nameof(Tests)));if(testsTarget==null)return;Serilog.Log.Information("Tests succeeded in {BCTestsTargetRunDuration}",testsTarget.Duration);TeamCity.Instance?.AddStatisticValue("BCTestsTargetRunDuration",testsTarget.Duration.ToString());}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Graph time spent running tests or any target ran by nuke build
Add a custom build metric to be able to fail the build
See
https://twitter.com/laurentkempe/status/1562741381021716482
See
https://www.jetbrains.com/help/teamcity/2021.2/build-failure-conditions.html#Adding+Custom+Build+Metric
You can also use code to report a metric
The text was updated successfully, but these errors were encountered: