Skip to main content

Version: 24.10

app-deploy

The app-deploy task deploys an application package archive to a Journey Manager server.

Task Attributes

All attributes are optional unless otherwise indicated.

AttributeDescription
clientCodeString

Required. The client code of the organization in TM.

fileString

Required. The application package archive ZIP file.

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.

Example

The example Ant task below deploys an application package archive to a remote TM server.

<app-deploy file="target/app-home-loan-v${version}.zip"
clientCode="mycorp"
url="https://form.mycorp.com/manager/"
username="[email protected]"
password="password"
proxyFile="./proxy.properties" />

Example Ant log output:

app-deploy:
[app-deploy] Request: POST http://localhost:9080/manager/secure/rest/application-package/v1/ntgov HTTP/1.1
[app-deploy] Response: HTTP/1.1 200 OK
[app-deploy] Response: {
[app-deploy] "archiveName": "app-home-loan-v1.0.0.zip",
[app-deploy] "importMessage": "Application package named 'Home Loan' for organization 'test' was imported successfully.",
[app-deploy] "importStatus": "Completed",
[app-deploy] "importTime": "2017-02-24T16:56+1100"
[app-deploy] }