Browse Source

Updating pipeline to post messages to matrix

develop
Drew Short 5 years ago
parent
commit
609d5746f4
  1. 27
      pipeline.yml

27
pipeline.yml

@ -7,7 +7,7 @@ resource_types:
- name: matrix-notification-resource - name: matrix-notification-resource
type: docker-image type: docker-image
source: source:
repository: freelock/matrix-notification-resource
repository: nexus.nulloctet.com:5000/sothr/matrix-notification-resource
resources: resources:
- name: git-develop - name: git-develop
@ -80,6 +80,16 @@ jobs:
cd git-develop cd git-develop
npm install npm install
npm test npm test
on_failure:
do:
- put: matrix-notification
params:
msgtype: m.notice
text: |
A test of baphomet-js-dev has failed. Check it out at:
https://concourse.nulloctet.com/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
or at:
https://concourse.nulloctet.com/builds/$BUILD_ID
- name: deploy-develop-image - name: deploy-develop-image
plan: plan:
- get: git-develop - get: git-develop
@ -144,6 +154,11 @@ jobs:
build: package build: package
tag_file: package/tag tag_file: package/tag
tag_as_latest: false tag_as_latest: false
- put: matrix-notification
params:
msgtype: m.notice
text: |
Successfully deployed baphomet-js-dev image to repository
- name: deploy-develop-helm - name: deploy-develop-helm
plan: plan:
- get: git-develop - get: git-develop
@ -187,6 +202,16 @@ jobs:
cd git-master cd git-master
npm install npm install
npm test npm test
on_failure:
do:
- put: matrix-notification
params:
msgtype: m.notice
text: |
A test of baphomet-js has failed. Check it out at:
https://concourse.nulloctet.com/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME
or at:
https://concourse.nulloctet.com/builds/$BUILD_ID
- name: deploy-release-image - name: deploy-release-image
plan: plan:
- get: git-master - get: git-master

Loading…
Cancel
Save