All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DEVOPS::Pipeline

Last Updated:Aug 12, 2024

ALIYUN::DEVOPS::Pipeline is used to create a pipeline. YAML-based pipelines are supported.

Syntax

{
  "Type": "ALIYUN::DEVOPS::Pipeline",
  "Properties": {
    "Content": String,
    "OrganizationId": String,
    "Name": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Content

String

Yes

Yes

The description of the YAML-based pipeline.

None.

OrganizationId

String

Yes

No

The enterprise ID.

The enterprise ID is of the String type. You can obtain the enterprise ID by accessing the Apsara DevOps endpoint. Example:

https://devops.aliyun.com/organization/[OrganizationId]

Name

String

Yes

Yes

The pipeline name.

None.

Return values

Fn::GetAtt

PipelineId: the pipeline ID.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Content:
        Description:
          en: Pipeline description in YAML format.
        Type: String
      Name:
        Description:
          en: Pipeline name.
        Type: String
      OrganizationId:
        Description:
          en: Corporate identity, also known as enterprise id, can obtain in cloud effect
            access links.
        Type: String
    Resources:
      Pipeline:
        Properties:
          Content:
            Ref: Content
          Name:
            Ref: Name
          OrganizationId:
            Ref: OrganizationId
        Type: ALIYUN::DEVOPS::Pipeline
    Outputs:
      PipelineId:
        Description: Pipeline id.
        Value:
          Fn::GetAtt:
          - Pipeline
          - PipelineId
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Content": {
          "Type": "String",
          "Description": {
            "en": "Pipeline description in YAML format."
          }
        },
        "OrganizationId": {
          "Type": "String",
          "Description": {
            "en": "Corporate identity, also known as enterprise id, can obtain in cloud effect access links."
          }
        },
        "Name": {
          "Type": "String",
          "Description": {
            "en": "Pipeline name."
          }
        }
      },
      "Resources": {
        "Pipeline": {
          "Type": "ALIYUN::DEVOPS::Pipeline",
          "Properties": {
            "Content": {
              "Ref": "Content"
            },
            "OrganizationId": {
              "Ref": "OrganizationId"
            },
            "Name": {
              "Ref": "Name"
            }
          }
        }
      },
      "Outputs": {
        "PipelineId": {
          "Description": "Pipeline id.",
          "Value": {
            "Fn::GetAtt": [
              "Pipeline",
              "PipelineId"
            ]
          }
        }
      }
    }