Use correct name for the root depends_on yaml key.
This commit is contained in:
@@ -48,6 +48,7 @@ func TestParse(t *testing.T) {
|
||||
Clone: manifest.Clone{
|
||||
Depth: 50,
|
||||
},
|
||||
Deps: []string{"dependency"},
|
||||
PullSecrets: []string{"dockerconfigjson"},
|
||||
Trigger: manifest.Conditions{
|
||||
Branch: manifest.Condition{
|
||||
|
||||
@@ -26,7 +26,7 @@ type Pipeline struct {
|
||||
Kind string `json:"kind,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Deps []string `json:"depends_on,omitempty"`
|
||||
Deps []string `json:"depends_on,omitempty" yaml:"depends_on"`
|
||||
|
||||
Clone manifest.Clone `json:"clone,omitempty"`
|
||||
Concurrency manifest.Concurrency `json:"concurrency,omitempty"`
|
||||
|
||||
5
engine/resource/testdata/manifest.yml
vendored
5
engine/resource/testdata/manifest.yml
vendored
@@ -14,6 +14,9 @@ type: docker
|
||||
name: default
|
||||
version: 1
|
||||
|
||||
depends_on:
|
||||
- dependency
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
@@ -56,4 +59,4 @@ image_pull_secrets:
|
||||
trigger:
|
||||
branch: [ master ]
|
||||
|
||||
...
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user