Skip to content

Commit

Permalink
[Bitrise] Add status reporting configuration and graph pipeline suppo…
Browse files Browse the repository at this point in the history
…rt (#4197)

* Add status_report_name to app, workflows and pipelines

* Fix status name regex pattern

* Fix status name regex pattern

* BitriseDataModel requirements

* Add graph pipeline support

* Update formatting

---------

Co-authored-by: Krisztián Gödrei <krisztian.godrei@bitrise.io>
  • Loading branch information
tothszabi and godrei authored Nov 6, 2024
1 parent 3235aa2 commit 32f1c21
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion src/schemas/json/bitrise.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"description": {
"type": "string"
},
"status_report_name": {
"$ref": "#/definitions/StatusReportNameModel"
},
"envs": {
"$ref": "#/definitions/EnvModel"
}
Expand Down Expand Up @@ -43,7 +46,7 @@
"type": "object"
},
"BitriseDataModel": {
"oneOf": [
"anyOf": [
{ "required": ["format_version"] },
{ "required": ["includes"] }
],
Expand Down Expand Up @@ -262,6 +265,9 @@
"triggers": {
"$ref": "#/definitions/TriggersModel"
},
"status_report_name": {
"$ref": "#/definitions/StatusReportNameModel"
},
"stages": {
"items": {
"patternProperties": {
Expand All @@ -272,6 +278,46 @@
"type": "object"
},
"type": "array"
},
"workflows": {
"patternProperties": {
".*": {
"$ref": "#/definitions/GraphPipelineWorkflowModel"
}
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object"
},
"GraphPipelineWorkflowModel": {
"properties": {
"depends_on": {
"items": {
"type": "string"
},
"type": "array"
},
"abort_on_fail": {
"type": "boolean"
},
"should_always_run": {
"type": "string",
"enum": ["off", "workflow"]
},
"run_if": {
"$ref": "#/definitions/GraphPipelineWorkflowRunIfModel"
}
},
"additionalProperties": false,
"type": "object"
},
"GraphPipelineWorkflowRunIfModel": {
"required": ["expression"],
"properties": {
"expression": {
"type": "string"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -309,6 +355,12 @@
"additionalProperties": false,
"type": "object"
},
"StatusReportNameModel": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[a-zA-Z0-9,./():\\-_ <>\\[\\]\\|]*$"
},
"StepModel": {
"properties": {
"title": {
Expand Down Expand Up @@ -684,6 +736,9 @@
"triggers": {
"$ref": "#/definitions/TriggersModel"
},
"status_report_name": {
"$ref": "#/definitions/StatusReportNameModel"
},
"before_run": {
"items": {
"type": "string"
Expand Down

0 comments on commit 32f1c21

Please sign in to comment.