svc-clone
The svc-clone
task clones the specified service definition from the remote Journey Manager server.
This task is useful when you need to download a service and store it in SCM to review, develop and/or later deploy the service on a Journey Manager server.
Task Attributes
All attributes are optional unless otherwise indicated.
Attribute | Description |
---|---|
name | String Required. The name of the service to clone. |
version | String Required. The service version number. |
dir | String Required. The dir where to clone the service. |
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.
Ant Example
The example Ant task below clones a service definition from the remote TM server.
<svc-clone clientCode="mycorp"
name="TrackMe DD"
version="0.1.0"
dir="/src"
url="https://form.mycorp.com/manager/"
username="[email protected]"
proxyFile="proxy.properties"
password="password" />
Example Ant log output:
svc-clone:
[svc-clone] Request: GET https://form.mycorp.com/manager/secure/rest/service-definitions/v1/ HTTP/1.1
[svc-clone] Cloned remote service: /src