This commit is contained in:
mpavlov
2024-09-29 15:23:00 +03:00
parent d188b87171
commit 6030b1d2e1

6
Jenkinsfile vendored
View File

@@ -26,10 +26,8 @@ pipeline {
steps { steps {
script { script {
def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] 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 'echo "${ask_for_certs["rootca"]}" > roles/rproxy/files/RootCA.crt'
sh 'mv ${rootca} roles/rproxy/files/RootCA.crt' sh 'echo "${ask_for_certs["rootca_key"]}" > roles/rproxy/files/RootCA.key'
def rootca_key = readFile ask_for_certs["rootca_key"]
sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key'
} }
} }
} }