| |
@@ -1,7 +1,7 @@
|
| |
def gen_ca(path='') {
|
| |
def conftmpl = libraryResource 'ca/ssl.cnf.in'
|
| |
- def conf = conftmpl.replace('${servername}', 'Test Certificate Authority')
|
| |
- conf = conf.replace('${commonName}', 'Test Certificate Authority')
|
| |
+ def conf = conftmpl.replace('${servername}', "Test Certificate Authority ${env.BUILD_NUMBER}")
|
| |
+ conf = conf.replace('${commonName}', "Test Certificate Authority ${env.BUILD_NUMBER}")
|
| |
conf = conf.replace('${subjectAltNames}', '')
|
| |
env.CA_PATH = path ?: "${env.WORKSPACE}/.ca-${env.BUILD_NUMBER}"
|
| |
dir(env.CA_PATH) {
|
| |
To avoid conflict on client side web browser.