From bb52e2ca855df0006bdfddeae4d2becde89ec2ce Mon Sep 17 00:00:00 2001 From: mpavlov Date: Sun, 29 Sep 2024 14:56:39 +0300 Subject: [PATCH] added script block --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f14dc1d..49fe482 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,14 +24,15 @@ pipeline { } } steps { - def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [file(name: 'rootca'), file(name: 'rootca_key')] + script { + 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') {