diff --git a/Jenkinsfile b/Jenkinsfile index 3041cae..7e5e3cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,6 +41,7 @@ spec: options { disableConcurrentBuilds() + buildDiscarder(logRotator(daysToKeepStr: '30', numToKeepStr: '200', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '120')) } triggers { diff --git a/scripts/publish_quality_metrics_test.py b/scripts/publish_quality_metrics_test.py index 23277ca..27e5e2b 100755 --- a/scripts/publish_quality_metrics_test.py +++ b/scripts/publish_quality_metrics_test.py @@ -32,7 +32,7 @@ class _GatewayHandler(http.server.BaseHTTPRequestHandler): self.end_headers() self.wfile.write(body) - def do_POST(self) -> None: # noqa: N802 + def do_PUT(self) -> None: # noqa: N802 size = int(self.headers.get("Content-Length", "0")) body = self.rfile.read(size).decode("utf-8") self.posts.append((self.path, body))