From 609d5746f48db00e7b482d7723744554cdaf9974 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sun, 12 Jan 2020 09:39:58 -0600 Subject: [PATCH] Updating pipeline to post messages to matrix --- pipeline.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 05a1d93..e10eb66 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -7,7 +7,7 @@ resource_types: - name: matrix-notification-resource type: docker-image source: - repository: freelock/matrix-notification-resource + repository: nexus.nulloctet.com:5000/sothr/matrix-notification-resource resources: - name: git-develop @@ -80,6 +80,16 @@ jobs: cd git-develop npm install 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 plan: - get: git-develop @@ -144,6 +154,11 @@ jobs: build: package tag_file: package/tag tag_as_latest: false + - put: matrix-notification + params: + msgtype: m.notice + text: | + Successfully deployed baphomet-js-dev image to repository - name: deploy-develop-helm plan: - get: git-develop @@ -187,6 +202,16 @@ jobs: cd git-master npm install 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 plan: - get: git-master