From 172f28e06f9ceb90885034c224a739041c7ebbab Mon Sep 17 00:00:00 2001 From: mpavlov Date: Sun, 29 Sep 2024 14:43:48 +0300 Subject: [PATCH] changed certificates input --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8d20a6..f14dc1d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,8 +11,6 @@ pipeline { parameters { string(name: "target_host", defaultValue: "", trim: true, description: "Target host") booleanParam(name: "rproxy_install", defaultValue: true, description: "Install Rproxy") - base64File(name: "rootca", description: "RootCA (only for 'Install Rproxy')") - base64File(name: "rootca_key", description: "RootCA key (only for 'Install Rproxy')") booleanParam(name: "config_add", defaultValue: true, description: "Add config") 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)") @@ -26,12 +24,14 @@ pipeline { } } steps { + def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [file(name: 'rootca'), file(name: 'rootca_key')] withFileParameter('rootca') { sh 'mv ${rootca} roles/rproxy/files/RootCA.crt' } withFileParameter('rootca_key') { sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key' } + ask_for_certs.delete() } } stage('Install Rproxy') {