changed certificates input
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -11,8 +11,6 @@ pipeline {
|
|||||||
parameters {
|
parameters {
|
||||||
string(name: "target_host", defaultValue: "", trim: true, description: "Target host")
|
string(name: "target_host", defaultValue: "", trim: true, description: "Target host")
|
||||||
booleanParam(name: "rproxy_install", defaultValue: true, description: "Install Rproxy")
|
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")
|
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_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)")
|
string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port (for 'Add config' job only)")
|
||||||
@@ -26,12 +24,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user