Skip to content

Commit

Permalink
Change failure condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 committed Nov 16, 2022
1 parent 4527d25 commit c03128a
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .teamcity/generated/ImageValidation.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c03128a

Please sign in to comment.