Skip to content

Commit

Permalink
Set state to error if failure for MTA and M2K
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <gfarache@redhat.com>
  • Loading branch information
gabriel-farache committed Aug 1, 2024
1 parent 6a49872 commit e15b1bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion move2kube/m2k.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions move2kube/m2k.sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ states:
transition: PrintExitErrorMessage
- name: PrintExitErrorMessage
type: parallel
metadata:
errorMessage: '"Move2Kube workflow failed with exit message: "+ .exitMessage + " -- Plan retries: " + (.planRetries|tostring) + " -- Error: " + .error'
branches:
- name: printSystemOut
actions:
Expand Down
2 changes: 2 additions & 0 deletions mta/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ states:
end: true
- name: NotifyFailureBackstage
type: operation
metadata:
errorMessage: '"MTA analysis for " + .application.repository.url + " failed. Check logs of task pod: " + .taskgroup.tasks[0].pod'
actions:
- functionRef:
refName: createNotification
Expand Down
2 changes: 1 addition & 1 deletion pipeline/workflow-builder-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/kiegroup/kogito-swf-builder-nightly:main-2024-04-08 AS builder
FROM docker.io/apache/incubator-kie-sonataflow-builder:main AS builder

# Temp hack to provide persistence artifacts
# ENV MAVEN_REPO_URL=https://maven.repository.redhat.com/earlyaccess/all
Expand Down

0 comments on commit e15b1bb

Please sign in to comment.