Skip to main content

Version: 23.10

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.

AttributeDescription
nameString

Required. The name of the service to clone.

versionString

Required. The service version number.

dirString

Required. The dir where to clone the service.

urlString

Required. The TM server URL.

usernameString

Required. The TM server login username.

passwordString

Required. The TM server login password.

proxyFileString

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. For more information, see Security Managers Overview.

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