lib-import
The lib-import task imports a Maestro organization or project library to a Maestro server.
Support
lib-import was introduced in Transact Maestro 18.05, and continues to be available in later Journey Maestro releases.
Task Attributes
| Attribute | Description |
|---|---|
url | StringRequired. The Maestro server URL. |
username | StringRequired. The Maestro server username. |
password | StringRequired. The Maestro server user's password. |
clientCode | StringRequired. The client code. |
projectName | StringThe Maestro project name. Required if importing a project library. |
libraryName | StringThe Maestro library name. If specified, overrides the value in the library's manifest. |
versionNumber | StringThe Maestro library version. If specified, overrides the value in the library's manifest. |
file | StringThe file path to library for import. Note: Either |
dir | StringThe dir path to library dir for import. Note: Either |
merge | StringIf |
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 "SCM Org Library Add", "SCM Project Library Edit", "SCM Project Library Add" or "SCM Project Library Edit".
If the user is not a global administrator, only services belonging to the organizations assigned to the user will be accessible.
Example
The example Ant task below imports a project library.
<lib-import url="https://form.mycorp.com/maestro/"
username="[email protected]"
password="password"
clientCode="maguire"
projectName="Credit Card"
libraryName="Exchange Core Lib"
versionNumber="1.0.0"
file="target/exhange-core-lib-v1.0.0.zip" />
Example Ant log output:
lib-import:
[lib-import] Http client: created.
[lib-import] Response: HTTP/1.1 200 OK
[lib-import] Response: {
[lib-import] "name": "Exchange Core Lib",
[lib-import] "type": "Project",
[lib-import] "createdAt": "Apr 19, 2018 1:12:58 PM",
[lib-import] "createdBy": "administrator",
[lib-import] "versionNumber": "1.0.0",
[lib-import] "clientId": 1,
[lib-import] "projectId": 1
[lib-import] "id": 5
[lib-import] }
BUILD SUCCESSFUL
Total time: 1 second