Import a release template
You can use templates to model the ideal process of a release flow. You can import a template from:
.xlrfile that was previously exported from Release.
- an exported
.zipfile. The exported
.zipfile contains Releasefile (
Note: If a template was exported from a version of Release prior to 4.0.0, you can import a
To import a template:
Use one of the following methods:
Go to Design > Templates and click Import.
- The template will be imported in the root level.
From the navigation pane, click Folders, select a folder, and click Templates > Add template > Import template.
- The template will be imported in the selected folder.
- Click Browse and browse to the
Click Import. Note the following:
- If the
.xlrtemplate contains references to objects that do not exist on the server (for example, Deploy servers or gate dependencies), Release removes the references and shows a warning message.
- If you import a template that contains release triggers, the triggers will be disabled.
- If the
You can also use the Release REST API to import templates. For templates that were exported from Release 4.0.0 and later, ensure that you use the
To import the templates in a specific folder, you should include the folder ID in the REST call. If you leave out the folder ID, it will be imported at the root level. For example:
curl -u admin:<admin password> "Content-type: Content-type: multipart/form-data" http://desktop-fru5pi8:5516/api/v1/templates/import?folderId=Applications/Folderfd2044f20db94b17affab9a1a934f1fd --form file=@Releasefile.zip
You can also use the XL CLI with DevOps as Code to model your Release templates in YAML files. For more information, see Manage release templates as code.