stages:
- name: test
spec:
platform:
arch: amd64
os: linux
runtime:
spec: {}
type: cloud
steps:
- name: test
spec:
image: cimg/base:2023.03
run: echo "this is the test job"
type: script
type: ci
version: 1
---
stages:
- name: build
spec:
platform:
arch: amd64
os: linux
runtime:
spec: {}
type: cloud
steps:
- name: build
spec:
image: cimg/base:2023.03
run: echo "this is the build job"
type: script
type: ci
version: 1
Each workflow is a separate pipeline delimited by ---. Downgrading should have the same behavior, multiple pipelines should be generated with a delimiter.
pipeline:
identifier: default
name: default
orgIdentifier: default
projectIdentifier: default
properties:
ci:
codebase:
build: <+input>
stages:
- stage:
identifier: test1
name: test
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: test
name: test
spec:
command: echo "this is the test job"
image: cimg/base:2023.03
timeout: ""
type: Run
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
---
pipeline:
identifier: default
name: default
orgIdentifier: default
projectIdentifier: default
properties:
ci:
codebase:
build: <+input>
stages:
- stage:
identifier: build1
name: build
spec:
cloneCodebase: true
execution:
steps:
- step:
identifier: build
name: build
spec:
command: echo "this is the build job"
image: cimg/base:2023.03
timeout: ""
type: Run
platform:
arch: Amd64
os: Linux
runtime:
spec: {}
type: Cloud
type: CI
Here is a circle pipeline
When converting to downgraded yaml, this is the result
Only the first workflow comes through.
Without downgrading, this is the result
Each workflow is a separate pipeline delimited by
---
. Downgrading should have the same behavior, multiple pipelines should be generated with a delimiter.