From 21aeba2515e43afd913a19ecf75f1adf8193ca73 Mon Sep 17 00:00:00 2001 From: mpavlov Date: Thu, 26 Sep 2024 22:03:49 +0300 Subject: [PATCH] added options block --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d13aee9..c8d20a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,13 @@ pipeline { agent any + options { + buildDiscarder logRotator ( + numToKeepStr: '5', + daysToKeepStr: '7', + artifactNumToKeepStr: '10', + artifactDaysToKeepStr: '7' + ) + } parameters { string(name: "target_host", defaultValue: "", trim: true, description: "Target host") booleanParam(name: "rproxy_install", defaultValue: true, description: "Install Rproxy") @@ -9,7 +17,6 @@ pipeline { string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name (for 'Add config' job only)") string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port (for 'Add config' job only)") string(name: "rproxy_service_address", defaultValue: "", trim: true, description: "Service address (for 'Add config' job only)") - } stages { stage('Save certs') {