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
  • Loading branch information
gabriel-farache committed May 23, 2024
1 parent e0e2800 commit f65060c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ENABLE_PERSISTENCE ?= false
# extra extensions needed for persistence at build time.
# The extentions listed below are included in the cache in image quay.io/kiegroup/kogito-swf-builder:9.99.1.CR1 or available from maven central repository
QUARKUS_EXTENSIONS=org.kie.kogito:kogito-addons-quarkus-jobs-knative-eventing:9.99.1.redhat-00003,org.kie.kogito:kogito-addons-quarkus-persistence-jdbc:9.99.1.redhat-00003,org.kie.kogito:kogito-addons-persistence-jdbc:9.99.1.redhat-00003,io.quarkus:quarkus-jdbc-postgresql:3.2.9.Final,io.quarkus:quarkus-agroal:3.2.9.Final
QUARKUS_DEV_EXTENSIONS=""
QUARKUS_DEV_EXTENSIONS=org.kie:kogito-addons-quarkus-jobs-knative-eventing:999-SNAPSHOT,org.kie:kie-addons-quarkus-persistence-jdbc:999-SNAPSHOT,org.kie:kie-addons-persistence-jdbc:999-SNAPSHOT,io.quarkus:quarkus-jdbc-postgresql:3.8.4,io.quarkus:quarkus-agroal:3.8.4
#org.kie:kie-addons-quarkus-persistence-jdbc:999-20240317-SNAPSHOT,io.quarkus:quarkus-jdbc-postgresql:3.2.9.Final,io.quarkus:quarkus-agroal:3.2.9.Final

# build time properties required for persistence.
Expand Down
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 @@ -155,6 +155,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: 1 addition & 1 deletion mta/mta.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 mta/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,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:
- condition: .backstageUser != null or .backstageGroup != null
functionRef:
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 quay.io/kiegroup/kogito-swf-builder-nightly:latest 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 f65060c

Please sign in to comment.