From c03128a0adeba5b5629217a7ba3149d152dabda0 Mon Sep 17 00:00:00 2001 From: AndreyKoltsov1997 Date: Wed, 16 Nov 2022 16:44:29 +0100 Subject: [PATCH] Change failure condition. --- .teamcity/generated/ImageValidation.kts | 39 ++++++++++++++++--------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/.teamcity/generated/ImageValidation.kts b/.teamcity/generated/ImageValidation.kts index 907b1d862..ad95c0904 100644 --- a/.teamcity/generated/ImageValidation.kts +++ b/.teamcity/generated/ImageValidation.kts @@ -59,22 +59,35 @@ object image_validation: BuildType( failureConditions { - // fail in case statistics for any image changes for more than N percent - images.forEach { - failOnMetricChange { - // -- target metric + failOnMetricChange { + // -- target metric // param("metricKey", it.replace("%docker.deployRepository%", "").replace("2022.10-", "")) - param("metricKey", it) - - units = BuildFailureOnMetric.MetricUnit.PERCENTS - // -- 5% increase - threshold = 5 - comparison = BuildFailureOnMetric.MetricComparison.MORE - compareTo = build { - buildRule = lastSuccessful() - } + param("metricKey", "SIZE-teamcity-agent:windowsservercore-1809") + + units = BuildFailureOnMetric.MetricUnit.PERCENTS + // -- 5% increase + threshold = 5 + comparison = BuildFailureOnMetric.MetricComparison.MORE + compareTo = build { + buildRule = lastSuccessful() } } + // fail in case statistics for any image changes for more than N percent +// images.forEach { +// failOnMetricChange { +// // -- target metric +//// param("metricKey", it.replace("%docker.deployRepository%", "").replace("2022.10-", "")) +// param("metricKey", it) +// +// units = BuildFailureOnMetric.MetricUnit.PERCENTS +// // -- 5% increase +// threshold = 5 +// comparison = BuildFailureOnMetric.MetricComparison.MORE +// compareTo = build { +// buildRule = lastSuccessful() +// } +// } +// } failOnText {