diff --git a/Jenkinsfile b/Jenkinsfile index 3e6c740..3e84da3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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{') &&