changed logic of uploading

This commit is contained in:
mpavlov
2024-09-29 15:12:48 +03:00
parent 7b2da46eb9
commit dd25db5776

6
Jenkinsfile vendored
View File

@@ -26,11 +26,9 @@ 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 params.rootca
withFileParameter('rootca') {
sh 'mv ${rootca} roles/rproxy/files/RootCA.crt' sh 'mv ${rootca} roles/rproxy/files/RootCA.crt'
} def rootca_key = readFile params.rootca_key
withFileParameter('rootca_key') {
sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key' sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key'
} }
} }