svc-deploy
The svc-deploy
task uploads a service archive to a Journey Manager server.
Task Attributes
All attributes are optional unless otherwise indicated.
Attribute | Description |
---|---|
file | String Required. The output service archive ZIP file. |
url | String Required. The TM server URL. |
username | String Required. The TM server login username. |
password | String Required. The TM server login password. |
proxyFile | String HTTP proxy configuration properties file location. |
TM Security
To use this task, the user specified by username
needs an active user account on the TM server with access to the Management Console module.
To be authorized to call the service, the user account also needs the Management Console permission "REST Service Definitions API".
If the user is not a global administrator, only application packages belonging to the organizations assigned to the user will be accessible.
Example
The example Ant task below uploads a service archive ZIP to a remote TM server.
<svc-deploy file="target/trackme-service.zip"
clientCode="mycorp"
url="https://form.mycorp.com/manager/"
username="[email protected]"
password="password"
proxyFile="./proxy.properties" />
Example Ant log output:
upload:
[svc-deploy] Request: POST https://form.mycorp.com/manager/secure/rest/service-definitions/v1/upload-service-archive/ HTTP/1.1
[svc-deploy] Response: {
[svc-deploy] "archiveName": "trackme-service.zip",
[svc-deploy] "importMessage": "Imported TrackMe DD to Organization 'mycorp' successfully.",
[svc-deploy] "importStatus": "Completed",
[svc-deploy] "importTime": "2016-06-20T22:43+1000"
[svc-deploy] }