ci(lesavka): avoid pushgateway counter pipefail
This commit is contained in:
parent
81a4bbcc64
commit
63d47d4435
@ -54,12 +54,13 @@ fetch_remote_counter() {
|
||||
if (index($0, "job=\"platform-quality-ci\"") == 0) next
|
||||
if (index($0, "suite=\"" suite "\"") == 0) next
|
||||
if (index($0, "status=\"" status "\"") == 0) next
|
||||
print int($2)
|
||||
found = 1
|
||||
exit
|
||||
if (!found) {
|
||||
value = int($2)
|
||||
found = 1
|
||||
}
|
||||
}
|
||||
END {
|
||||
if (!found) print 0
|
||||
print found ? value : 0
|
||||
}'
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user