Skip to content

Commit

Permalink
Add warning status in the output schema completedWith enum and update…
Browse files Browse the repository at this point in the history
… workflows accordingly

Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Nov 7, 2024
1 parent 17bb8cd commit c5d07aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mta-v7.x/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ functions:
- name: mandatoriesIncidentsResult
type: expression
operation: '{
"completedWith": "error",
"message": "MTA analysis for " + .application.repository.url + " completed with " + (.application.mandatoriesIncidents|tostring) + " incidents in mandatory issues. Check the analysis report." + (if .migrationWaveJiraTicket != null then " Application was exported to issue manager." else "" end),
"completedWith": "warning",
"message": "MTA analysis for " + .application.repository.url + " completed with " + (.application.mandatoriesIncidents|tostring) + " incidents in mandatory issues that need to be fixed before being able to provide any next possible workflow. Check the analysis report." + (if .migrationWaveJiraTicket != null then " Application was exported to issue manager." else "" end),
"outputs": [
{
"key":"MTA Analysis Result URL",
Expand Down
3 changes: 2 additions & 1 deletion shared/schemas/workflow-result-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"type": "string",
"enum": [
"error",
"success"
"success",
"warning"
]
},
"message": {
Expand Down

0 comments on commit c5d07aa

Please sign in to comment.