feature: Add IRC notification on build failure
@@ -68,6 +68,12 @@ save_junit: &save_junit
mkdir -p /workspace/junit/
find . -type f -regextype posix-extended -regex ".*target/.*TESTS?-.*xml" | xargs -i cp --backup --suffix=.xml {} /workspace/junit/
+irc_notify_on_failure: &irc_notify_on_failure
+ run:
+ name: "IRC Notify failure to #syndesis"
+ command: bash ./.circleci/sent_irc_notification.sh
+ when: on_fail
+
jobs:
# UI has no dependencies, just load cache
ui:
@@ -104,6 +110,7 @@ jobs:
paths:
- ~/.m2
- <<: *push_images
+ - <<: *irc_notify_on_failure
# Connector depends on integration, mount workspace .m2
connector:
@@ -129,6 +136,7 @@ jobs:
paths:
- ~/.m2
- <<: *save_m2
+ - <<: *irc_notify_on_failure
# Meta depends on connectors, mount workspace .m2
@@ -158,6 +166,7 @@ jobs:
key: syndesis-mvn-meta-{{ checksum "app/meta/pom.xml" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
# Common has no dependencies, just load cache
common:
@@ -183,6 +192,7 @@ jobs:
key: syndesis-mvn-common-{{ checksum "app/common/pom.xml" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
# Extension depends on common
extension:
@@ -208,6 +218,7 @@ jobs:
key: syndesis-mvn-extension-{{ checksum "app/extension/pom.xml" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
# integration dependes on extension, mount workspace .m2
integration:
@@ -233,6 +244,7 @@ jobs:
paths:
- ~/.m2
- <<: *save_m2
+ - <<: *irc_notify_on_failure
# S2I image
s2i:
@@ -258,6 +270,7 @@ jobs:
key: syndesis-mvn-s2i-{{ checksum "app/s2i/pom.xml" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
# "server" depends on common, connector and integration, mount workspace .m2
server:
@@ -297,6 +310,7 @@ jobs:
key: syndesis-mvn-server-{{ checksum "app/server/pom.xml" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
operator:
machine: true
@@ -319,6 +333,7 @@ jobs:
paths:
- dep-cache
- vendor
+ - <<: *irc_notify_on_failure
system-test:
<<: *job_defaults
@@ -355,6 +370,7 @@ jobs:
key: syndesis-mvn-tests-{{ checksum "all-poms" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
license-check:
<<: *job_defaults
@@ -377,6 +393,7 @@ jobs:
key: syndesis-license-check-{{ checksum "all-poms" }}
paths:
- ~/.m2
+ - <<: *irc_notify_on_failure
doc:
docker:
@@ -392,6 +409,7 @@ jobs:
git config --global user.email "circleci@syndesis.io"
git config --global user.name "CircleCI"
./tools/bin/syndesis doc --local --html --pdf --gh-pages
+ - <<: *irc_notify_on_failure
workflows:
version: 2
