ci(typhon): preserve run counter scrape buffer

This commit is contained in:
Brad Stein 2026-05-19 08:56:36 -03:00
parent 4d45c40f75
commit 8ad9b8a35c

5
Jenkinsfile vendored
View File

@ -336,7 +336,10 @@ function labelString(labels) {
function fetchCounter(targetStatus) {
try {
const metrics = execSync(`curl -fsS ${gateway}/metrics`, { encoding: 'utf8' });
const metrics = execSync(`curl -fsS ${gateway}/metrics`, {
encoding: 'utf8',
maxBuffer: 16 * 1024 * 1024
});
for (const line of metrics.split(String.fromCharCode(10))) {
if (
line.startsWith('platform_quality_gate_runs_total{') &&