The task is used to deploy/undeploy/update the project (and it's services) to the Service Virtualization server.
Attribute | Description | Required |
projectFile | Project File (.vproj or .vproja) to be deployed. Project file has specified the server management url as well so we don't have to specify it separately (if you don't want to change it of course). | yes |
url | The server's management endpoint (e.g. https://localhost:6085/management or http://localhost:6080/management) | No (if you use the projectFile parameter). |
username | Username for conencting to the server management endpoint. | No |
password | Password for conencting to the server management endpoint. | No |
service | The name of the service (or its ID) we want to deploy. If you specify this parameter, the task won't deploy all the services from the project but only specified service. | No |
undeploy | If you specify (and set it to yes) this parameter, then the task will undeploy specified services from the project instead of their deployment. | No |
force | Force mode means that if the service to be deployed is locked by another user the task will automatically unlock it. If you don't use force mode and the service is locked, the deployment won't be accomplished. Be careful with this option because you can rewrite another user's data if you explicitly unlock the service. | No |
<svdeploy url="https://localhost:6085" username="HPSV" password="secret" projectFile="mySVProject.vproja" />Deploys all the services from the specified project (if some of these services had not already been deployed and are locked by another user).
<svdeploy url="https://localhost:6085" username="HPSV" password="secret" projectFile="mySVProject.vproja" service="My Perfect Virtual Service" force="yes" />Deploys the service called "My Perfect Virtual Service" from the specified project (even if they have already been deployed and are locked by another user).
<svdeploy url="https://localhost:6085" username="HPSV" password="secret" projectFile="mySVProject.vproja" undeploy="yes" />Undeploys all the services from the specified project (even if they have already been deployed and are locked by another user).