moved to stage

This commit is contained in:
mpavlov
2024-10-03 20:47:00 +03:00
parent a7ef0350b9
commit cdcc770592

12
Jenkinsfile vendored
View File

@@ -23,12 +23,12 @@ pipeline {
// return params.rproxy_install // return params.rproxy_install
// } // }
// } // }
steps { // steps {
// script { // script {
def AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')] def AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')]
// RootCA = AskCerts[rootca] // RootCA = AskCerts[rootca]
sh 'echo ${AskCerts["rootca"]} | base64 -d > roles/rproxy/files/RootCA.crt' sh 'echo ${AskCerts["rootca"]} | base64 -d > roles/rproxy/files/RootCA.crt'
sh 'cat roles/rproxy/files/RootCA.crt' sh 'cat roles/rproxy/files/RootCA.crt'
// def rootca_key = AskCerts['rootca_key'] // def rootca_key = AskCerts['rootca_key']
@@ -36,7 +36,7 @@ pipeline {
// sh 'echo "${ask_for_certs["rootca"]}" > roles/rproxy/files/RootCA.crt' // sh 'echo "${ask_for_certs["rootca"]}" > roles/rproxy/files/RootCA.crt'
// sh 'echo "${ask_for_certs["rootca_key"]}" > roles/rproxy/files/RootCA.key' // sh 'echo "${ask_for_certs["rootca_key"]}" > roles/rproxy/files/RootCA.key'
// } // }
} // }
} }
stage('Install Rproxy') { stage('Install Rproxy') {
when { when {