From e775a0b29df6de8bfd4ce8def8179e6942645d8f Mon Sep 17 00:00:00 2001 From: mpavlov Date: Thu, 3 Oct 2024 20:33:16 +0300 Subject: [PATCH] test2 --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 964c18c..0ac2c8b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,13 @@ pipeline { steps { script { env.AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] - sh 'echo "${rootca}"' + def rootca = AskCerts['rootca'] + sh 'echo ${rootca} | base64 -d > roles/rproxy/files/RootCA.crt' + sh 'cat roles/rproxy/files/RootCA.crt' + + // def rootca_key = AskCerts['rootca_key'] + + // sh 'echo "${ask_for_certs["rootca"]}" > roles/rproxy/files/RootCA.crt' // sh 'echo "${ask_for_certs["rootca_key"]}" > roles/rproxy/files/RootCA.key' }