From b9c496b0e110cfeb1421d06659c1f93f0681d93b Mon Sep 17 00:00:00 2001 From: mpavlov Date: Thu, 3 Oct 2024 20:48:17 +0300 Subject: [PATCH] another test --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c19525b..e6afa05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,20 +23,20 @@ pipeline { // return params.rproxy_install // } // } - // steps { - // script { - def AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] - // RootCA = AskCerts[rootca] - sh 'echo ${AskCerts["rootca"]} | base64 -d > roles/rproxy/files/RootCA.crt' - sh 'cat roles/rproxy/files/RootCA.crt' + steps { + script { + env.AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] + // RootCA = AskCerts[rootca] + sh 'echo ${env.AskCerts["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' - // } - // } + } + } } stage('Install Rproxy') { when {