added script block

This commit is contained in:
mpavlov
2024-09-29 14:56:39 +03:00
parent 172f28e06f
commit bb52e2ca85

5
Jenkinsfile vendored
View File

@@ -24,14 +24,15 @@ pipeline {
} }
} }
steps { steps {
def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [file(name: 'rootca'), file(name: 'rootca_key')] script {
def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [file(name: 'rootca'), file(name: 'rootca_key')]
}
withFileParameter('rootca') { withFileParameter('rootca') {
sh 'mv ${rootca} roles/rproxy/files/RootCA.crt' sh 'mv ${rootca} roles/rproxy/files/RootCA.crt'
} }
withFileParameter('rootca_key') { withFileParameter('rootca_key') {
sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key' sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key'
} }
ask_for_certs.delete()
} }
} }
stage('Install Rproxy') { stage('Install Rproxy') {