-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bxci.schema-3.x. Added new schema version 3.0 (#4255)
- Loading branch information
Showing
18 changed files
with
1,142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/negative_test/bxci.schema-3.x/bxci-cache-with-unknown-types.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
project: | ||
name: any | ||
|
||
config: | ||
cache: | ||
repository: | ||
address: https://binary-repository.com/directory | ||
credentials: SOME_CREDENTIALS | ||
|
||
items: | ||
- type: unknown | ||
enabled: true | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" |
11 changes: 11 additions & 0 deletions
11
src/negative_test/bxci.schema-3.x/bxci-helm-missing-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
project: | ||
type: npm | ||
|
||
config: | ||
build: | ||
commit_time_threshold: 2 | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" |
13 changes: 13 additions & 0 deletions
13
src/negative_test/bxci.schema-3.x/bxci-missing-output-package-channel-branch.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
project: | ||
name: some-project | ||
type: npm | ||
|
||
stages: | ||
my stage: | ||
steps: | ||
- echo first | ||
|
||
output: | ||
package: | ||
publish: | ||
- channel: stable |
12 changes: 12 additions & 0 deletions
12
src/negative_test/bxci.schema-3.x/bxci-missing-output-package-publish.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
project: | ||
name: some-project | ||
type: npm | ||
|
||
stages: | ||
my stage: | ||
steps: | ||
- echo first | ||
|
||
output: | ||
package: | ||
- channel: stable |
14 changes: 14 additions & 0 deletions
14
src/negative_test/bxci.schema-3.x/bxci-output-docker-additional-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project: | ||
name: any | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" | ||
|
||
output: | ||
docker: | ||
images: | ||
- dockerfile: Dockerfile | ||
image_name: britebill/image-name | ||
not_allowed: true |
15 changes: 15 additions & 0 deletions
15
src/negative_test/bxci.schema-3.x/bxci-output-docker-image-missing-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
project: | ||
name: any | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" | ||
|
||
output: | ||
docker: | ||
images: | ||
- name: my-image | ||
args: | ||
- key: GIT_COMMIT | ||
value: some value |
13 changes: 13 additions & 0 deletions
13
src/negative_test/bxci.schema-3.x/bxci-output-image-with-additional-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
project: | ||
type: npm | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" | ||
|
||
output: | ||
helm: | ||
charts: | ||
- chart_name: my-chart | ||
not_allowed: true |
14 changes: 14 additions & 0 deletions
14
src/negative_test/bxci.schema-3.x/bxci-output-with-additional-properties.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project: | ||
type: npm | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" | ||
|
||
output: | ||
docker: | ||
images: | ||
- dockerfile: path/to/Dockerfile | ||
image_name: my-image | ||
this_is_not_allowed: true |
16 changes: 16 additions & 0 deletions
16
src/negative_test/bxci.schema-3.x/bxci-output-with-invalid-vulnerability-scan.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
project: | ||
type: npm | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" | ||
|
||
output: | ||
docker: | ||
images: | ||
- dockerfile: path/to/Dockerfile | ||
image_name: my-image | ||
vulnerability_scan: | ||
enabled: false | ||
not_allowed: true |
12 changes: 12 additions & 0 deletions
12
src/negative_test/bxci.schema-3.x/bxci-stages-parallel-stage-no-stages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
project: | ||
name: any | ||
|
||
stages: | ||
single_stage: | ||
steps: | ||
- one | ||
parallel_stages: | ||
fail_fast: true | ||
when: | ||
branch: master | ||
parallel: |
14 changes: 14 additions & 0 deletions
14
src/negative_test/bxci.schema-3.x/bxci-stages-singe-stage-no-steps.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project: | ||
name: any | ||
|
||
stages: | ||
single_stage: | ||
|
||
parallel_stages: | ||
parallel: | ||
parallel_stage_one: | ||
steps: | ||
- one | ||
parallel_stage_two: | ||
steps: | ||
- two |
8 changes: 8 additions & 0 deletions
8
src/negative_test/bxci.schema-3.x/bxci-stages-wrong-fail-fast.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project: | ||
name: any | ||
|
||
stages: | ||
single_stage: | ||
fail_fast: true | ||
steps: | ||
- one |
14 changes: 14 additions & 0 deletions
14
src/negative_test/bxci.schema-3.x/bxci-wrong-checkmarx-thresholds.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
project: | ||
name: any | ||
|
||
config: | ||
build: | ||
checkmarx: | ||
highThreshold: '1' | ||
mediumThreshold: '1' | ||
lowThreshold: '1' | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" |
12 changes: 12 additions & 0 deletions
12
src/negative_test/bxci.schema-3.x/bxci-wrong-checkmarx.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
project: | ||
name: any | ||
|
||
config: | ||
build: | ||
checkmarx: | ||
exclusionsSetting: invalid | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" |
11 changes: 11 additions & 0 deletions
11
src/negative_test/bxci.schema-3.x/bxci-wrong-commit-threshold.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
project: | ||
type: npm | ||
|
||
config: | ||
build: | ||
commit_time_threshold: 2 | ||
|
||
stages: | ||
first: | ||
steps: | ||
- echo "Hello" |
Oops, something went wrong.