You can export a release pipeline model between vRealize Code Stream 2.0 appliances so that users do not have to recreate an existing release pipeline.

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

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.

{
     "modelVersion": 1,
     "metadata": {
          "pluginInstances": {
               "instance": []
          }
     },
     "model": {
          "name": "Sample Pipeline",
          "notificationList": "xyz@company.com",
          "version": 1,
          "tags": {
               "tag": ["abc"]
          },
          "pipelineParams": {
               "property": []
          },
          "stages": {
               "stage": [{
                    "name": "DEV",
                    "index": 0,
                    "tasks": {
                         "task": [{
                              "index": 0,
                              "name": "Test task",
                              "plugin": {
                                   "provider": "vrcs.jenkins:build_job",
                                   "category": "TEST",
                                   "instanceId": 1
                              },
                              "inputProperties": {
                                   "property": [
                                        {
                                                  "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
     }
}