app-deploy
The app-deploy
task deploys an application package archive to a Transact Manager server.
Task Attributes
All attributes are optional unless otherwise indicated.
Attribute | Description |
---|---|
clientCode | String Required. The client code of the organization in TM. |
file | String Required. The application package 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 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] }