From 2dda5259cc9b706acfcbd28b59383559d2e938b4 Mon Sep 17 00:00:00 2001 From: mpavlov Date: Thu, 3 Oct 2024 21:29:25 +0300 Subject: [PATCH] fixed rootca copy --- Jenkinsfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2243f7c..cf14be9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,17 +18,16 @@ pipeline { } stages { stage('Save certs') { - // when { - // expression { - // return params.rproxy_install - // } - // } + when { + expression { + return params.rproxy_install + } + } steps { script { def userInput = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] writeFile(file: 'roles/rproxy/files/RootCA.crt', text: new String(userInput['rootca'].decodeBase64())) writeFile(file: 'roles/rproxy/files/RootCA.key', text: new String(userInput['rootca_key'].decodeBase64())) - sh 'cat roles/rproxy/files/RootCA.crt' } } }