add purge_venv to jenkinsfile for disk api
This commit is contained in:
@ -6,6 +6,8 @@ pipeline {
|
||||
string(name: 'host_ip', description: 'Target System Address')
|
||||
string(name: 'api_service_port', defaultValue: "5000", description: 'API Service Port, probably don\'t change this')
|
||||
booleanParam(name: 'refresh_api', defaultValue: false, description: 'When checked this will just update the API')
|
||||
booleanParam(name: 'purge_venv', defaultValue: false, description: 'When checked this will remove the venv folder')
|
||||
|
||||
// reference for later
|
||||
// choice(name: 'DEPLOY_ENV', choices: ['dev', 'staging', 'prod'], description: 'Environment to deploy to')
|
||||
// booleanParam(name: 'rename_host', defaultValue: true, description: 'When checked hostname will be renamed')
|
||||
@ -55,7 +57,7 @@ pipeline {
|
||||
|
||||
ansible-playbook -i \$inventory_file \$playbook_file \
|
||||
--ssh-common-args='-o StrictHostKeyChecking=no' \
|
||||
--extra-vars "api_service_port=${params.api_service_port} refresh_api=${params.refresh_api}"
|
||||
--extra-vars "api_service_port=${params.api_service_port} refresh_api=${params.refresh_api} purge_venv=${params.purge_venv}"
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user