Skip to content

Commit 21eae5e

Browse files
authored
Merge pull request #168 from Karm/gitter-notify
Adds Gitter notification on build
2 parents a91eb87 + d52f388 commit 21eae5e

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.circleci/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
keys:
1818
- v1-dependencies-{{ checksum "pom.xml" }}
1919
- v1-dependencies-
20+
- run:
21+
name: Gitter Notification
22+
command: |
23+
curl -X POST -i -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $GITTER_TOKEN" \
24+
"https://api.gitter.im/v1/rooms/$GITTER_ROOM_ID/chatMessages" -d \
25+
"{\"text\":\"Automatic message: Hello, new [build]($CIRCLE_BUILD_URL) has started.\"}"
2026
- run: mvn dependency:go-offline -Pthorntail -Djdk.net.URLClassPath.disableClassPathURLCheck=true
2127
- save_cache:
2228
paths:
@@ -75,9 +81,15 @@ jobs:
7581
fingerprints:
7682
- "75:12:72:e1:19:f8:2d:8f:eb:ed:88:87:6c:c2:66:28"
7783
- run:
78-
name: Deploy Over SSH
84+
name: Restart Compose
7985
command: |
8086
ssh $SSH_USER@$SSH_HOST "sudo systemctl restart [email protected]"
87+
- run:
88+
name: Gitter Notification
89+
command: |
90+
curl -X POST -i -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $GITTER_TOKEN" \
91+
"https://api.gitter.im/v1/rooms/$GITTER_ROOM_ID/chatMessages" -d \
92+
"{\"text\":\"Automatic message: Hello, new [build]($CIRCLE_BUILD_URL) is live on https://test-start.microprofile.io/\"}"
8193
8294
workflows:
8395
build-master:
@@ -88,19 +100,19 @@ workflows:
88100
only: master
89101
- docker-build:
90102
requires:
91-
- build
103+
- build
92104
filters:
93105
branches:
94106
only: master
95107
- publish-master:
96108
requires:
97-
- docker-build
109+
- docker-build
98110
filters:
99111
branches:
100112
only: master
101113
- deploy:
102114
requires:
103-
- publish-master
115+
- publish-master
104116
filters:
105117
branches:
106118
only: master

0 commit comments

Comments
 (0)