Skip to content

Commit

Permalink
bxci.schema-3.x. Added new schema version 3.0 (#4255)
Browse files Browse the repository at this point in the history
  • Loading branch information
migalons authored Dec 3, 2024
1 parent c593633 commit b49459d
Show file tree
Hide file tree
Showing 18 changed files with 1,142 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,8 @@
"1.0": "https://json.schemastore.org/bxci.schema-1.0.json",
"1.0.1": "https://json.schemastore.org/bxci.schema-1.0.1.json",
"2.0.0": "https://json.schemastore.org/bxci.schema-2.0.0.json",
"2.x": "https://json.schemastore.org/bxci.schema-2.x.json"
"2.x": "https://json.schemastore.org/bxci.schema-2.x.json",
"3.x": "https://json.schemastore.org/bxci.schema-2.x.json"
}
},
{
Expand Down
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 src/negative_test/bxci.schema-3.x/bxci-helm-missing-properties.yml
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"
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
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
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
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
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
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
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
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:
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
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
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 src/negative_test/bxci.schema-3.x/bxci-wrong-checkmarx.yml
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 src/negative_test/bxci.schema-3.x/bxci-wrong-commit-threshold.yml
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"
Loading

0 comments on commit b49459d

Please sign in to comment.