Skip to content

Commit

Permalink
fix(3103): Allow stages in pipeline template (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyi committed Apr 30, 2024
1 parent 54a8ab5 commit 17db088
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/pipelineTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const SCHEMA_CONFIG = Joi.object()
parameters: Parameters.parameters.default({}),
annotations: Annotations.annotations,
cache: BaseSchema.cache,
subscribe: BaseSchema.subscribe
subscribe: BaseSchema.subscribe,
stages: BaseSchema.stages
})
.unknown(false);

Expand Down
14 changes: 12 additions & 2 deletions test/data/config.pipelineTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,22 @@ config:
build: ["target/some-artifact.zip"]
publish-preview: ["target/some-artifact.zip"]
test: []
subscribe:
subscribe:
scmUrls:
- git@github.com:foo/bar.git#master: [~commit, ~tags, ~release]
annotations:
foo: a
bar: b
parameters:
color: [red, blue]

stages:
canary:
jobs:
- first
- second
description: "Canary jobs for testing"
prod:
jobs:
- deploy-west
- deploy-east
description: "Prod deploy jobs"

0 comments on commit 17db088

Please sign in to comment.