You can export a release pipeline model, and import it later, so that users do not have to recreate an existing release pipeline.

vRealize Code Stream supports exports of 2.3 and 2.2 versions of pipelines to import later.

When you use a REST API to export a release pipeline model, the latest version of the model is exported.

To use the vRealize Code Stream user interface to export pipelines, see Exporting Pipelines.

Note:

You can export the release pipeline model by specifying the release pipeline name.

HTTP Method

GET

URI Syntax

/release-management-service/api/release-pipelines/{ReleasePipelineName}?action=export

Response

The release pipeline model can be exported to an XML format by specifying the HTTP Accept Header as application/xml. JSON (application/json) is the default response format.

The password value is removed during the export process.

{
	"metadata": {
		"pluginInstances": {
			"instance": [

			]
		}
	},
	"model": {
		"name": "export",
		"modelVersion": "2.1",
		"notificationList": "",
		"version": 1,
		"tags": {
			"tag": [

			]
		},
		"pipelineParams": {
			"property": [

			]
		},
		"stages": {
			"stage": [{
				"name": "Stage0",
				"index": 0,
				"tasks": {
					"task": [{
						"index": 0,
						"name": "sample-task",
						"plugin": {
							"provider": "vrcs.jenkins:build_job",
							"category": "ALL"
						},
						"inputProperties": {
							"property": [{
								"name": "jobName",
								"type": "String",
								"value": "sample",
								"description": "jobName",
								"additional": false
							}, {
								"name": "jobParameters",
								"type": "JSON[]",
								"value": "[]",
								"description": "jobParameters",
								"additional": false
							}, {
								"name": "jenkinsServer",
								"type": "vrcs.jenkins:JenkinsServer",
								"value": "${racks['vrcs.jenkins:JenkinsServer@sample-jenkins-endpoint']}",
								"description": "jenkinsServer",
								"additional": false
							}]
						},
						"outputProperties": {
							"property": []
						},
						"conditionalExpression": "",
						"continueOnFailure": false,
						"dependsOn": [

						]
					}]
				}
			}]
		},
		"concurrentExecutionsSupported": true
	}
}