fix jenkinsfile
This commit is contained in:
parent
3ca1df03ec
commit
06af6df556
37
ansible/Jenkinsfile
vendored
37
ansible/Jenkinsfile
vendored
@ -18,9 +18,14 @@ pipeline {
|
|||||||
)
|
)
|
||||||
|
|
||||||
string(
|
string(
|
||||||
name: 'ADDITIONAL_CONTENT',
|
name: 'ADDITIONAL_CONTENT_H2',
|
||||||
defaultValue: 'Новое сообщение',
|
defaultValue: 'Новое сообщение',
|
||||||
description: 'Дополнительный параграф'
|
description: 'Дополнительный <h2> контент'
|
||||||
|
)
|
||||||
|
string(
|
||||||
|
name: 'ADDITIONAL_CONTENT_P',
|
||||||
|
defaultValue: 'Дополнительный параграф',
|
||||||
|
description: 'Дополнительный <p> контент'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,34 +61,34 @@ pipeline {
|
|||||||
|
|
||||||
switch(params.DEPLOY_TARGET) {
|
switch(params.DEPLOY_TARGET) {
|
||||||
case 'SiteA':
|
case 'SiteA':
|
||||||
selectedHosts = 'SiteA'
|
selectedHosts = 'SiteA,proxy'
|
||||||
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteA_p = params.ADDITIONAL_CONTENT
|
extraVars.siteA_p = params.ADDITIONAL_CONTENT_P
|
||||||
break
|
break
|
||||||
case 'SiteB':
|
case 'SiteB':
|
||||||
selectedHosts = 'SiteB'
|
selectedHosts = 'SiteB,proxy'
|
||||||
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteB_p = params.ADDITIONAL_CONTENT
|
extraVars.siteB_p = params.ADDITIONAL_CONTENT_P
|
||||||
break
|
break
|
||||||
case 'proxy':
|
case 'proxy':
|
||||||
selectedHosts = 'proxy'
|
selectedHosts = 'proxy'
|
||||||
break
|
break
|
||||||
case 'SiteA&proxy':
|
case 'SiteA&proxy':
|
||||||
selectedHosts = 'SiteA,proxy'
|
selectedHosts = 'SiteA,proxy'
|
||||||
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteA_p = params.ADDITIONAL_CONTENT
|
extraVars.siteA_p = params.ADDITIONAL_CONTENT_P
|
||||||
break
|
break
|
||||||
case 'SiteB&proxy':
|
case 'SiteB&proxy':
|
||||||
selectedHosts = 'SiteB,proxy'
|
selectedHosts = 'SiteB,proxy'
|
||||||
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteB_p = params.ADDITIONAL_CONTENT
|
extraVars.siteB_p = params.ADDITIONAL_CONTENT_P
|
||||||
break
|
break
|
||||||
case 'All':
|
case 'All':
|
||||||
selectedHosts = 'SiteA,SiteB,proxy'
|
selectedHosts = 'SiteA,SiteB,proxy'
|
||||||
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteA_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteA_p = params.ADDITIONAL_CONTENT
|
extraVars.siteA_p = params.ADDITIONAL_CONTENT_P
|
||||||
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT
|
extraVars.siteB_h2 = params.ADDITIONAL_CONTENT_H2
|
||||||
extraVars.siteB_p = params.ADDITIONAL_CONTENT
|
extraVars.siteB_p = params.ADDITIONAL_CONTENT_P
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
error "Неизвестный DEPLOY_TARGET: ${params.DEPLOY_TARGET}"
|
error "Неизвестный DEPLOY_TARGET: ${params.DEPLOY_TARGET}"
|
||||||
|
Loading…
Reference in New Issue
Block a user