changed certificates input

This commit is contained in:
mpavlov
2024-09-29 14:43:48 +03:00
parent b84f640240
commit 172f28e06f

4
Jenkinsfile vendored
View File

@@ -11,8 +11,6 @@ pipeline {
parameters {
string(name: "target_host", defaultValue: "", trim: true, description: "Target host")
booleanParam(name: "rproxy_install", defaultValue: true, description: "Install Rproxy")
base64File(name: "rootca", description: "RootCA (only for 'Install Rproxy')")
base64File(name: "rootca_key", description: "RootCA key (only for 'Install Rproxy')")
booleanParam(name: "config_add", defaultValue: true, description: "Add config")
string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name (for 'Add config' job only)")
string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port (for 'Add config' job only)")
@@ -26,12 +24,14 @@ pipeline {
}
}
steps {
def ask_for_certs = input message: 'Upload RootCA certificate and key', parameters: [file(name: 'rootca'), file(name: 'rootca_key')]
withFileParameter('rootca') {
sh 'mv ${rootca} roles/rproxy/files/RootCA.crt'
}
withFileParameter('rootca_key') {
sh 'mv ${rootca_key} roles/rproxy/files/RootCA.key'
}
ask_for_certs.delete()
}
}
stage('Install Rproxy') {