test userinput
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -25,16 +25,10 @@ pipeline {
|
|||||||
// }
|
// }
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.AskCerts = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')]
|
def userInput = input message: 'Upload RootCA certificate and key', parameters: [base64File(name: 'rootca'), base64File(name: 'rootca_key')]
|
||||||
// RootCA = AskCerts[rootca]
|
writeFile(file: 'roles/rproxy/files/RootCA.crt', text: new String(userInput['rootca'].decodeBase64()))
|
||||||
sh 'echo ${env.AskCerts["rootca"]} | base64 -d > roles/rproxy/files/RootCA.crt'
|
writeFile(file: 'roles/rproxy/files/RootCA.key', text: new String(userInput['rootca_key'].decodeBase64()))
|
||||||
sh 'cat roles/rproxy/files/RootCA.crt'
|
sh 'cat roles/rproxy/files/RootCA.crt'
|
||||||
|
|
||||||
// def rootca_key = AskCerts['rootca_key']
|
|
||||||
|
|
||||||
|
|
||||||
// sh 'echo "${ask_for_certs["rootca"]}" > roles/rproxy/files/RootCA.crt'
|
|
||||||
// sh 'echo "${ask_for_certs["rootca_key"]}" > roles/rproxy/files/RootCA.key'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user