From 6030b1d2e1fa0abd3225f2ed01d44fb65df77c8e Mon Sep 17 00:00:00 2001 From: mpavlov Date: Sun, 29 Sep 2024 15:23:00 +0300 Subject: [PATCH] echo try --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 637149e..78ca34f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,10 +26,8 @@ pipeline { steps { script { def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] - def rootca = readFile ask_for_certs["rootca"] - sh 'mv ${rootca} roles/rproxy/files/RootCA.crt' - def rootca_key = readFile ask_for_certs["rootca_key"] - sh 'mv ${rootca_key} roles/rproxy/files/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' } } }