ozg-7493 add send failure message
Compare changes
+ 34
− 30
@@ -6,6 +31,7 @@ pipeline {
@@ -6,6 +31,7 @@ pipeline {
@@ -167,6 +193,7 @@ pipeline {
@@ -167,6 +193,7 @@ pipeline {
@@ -182,7 +209,13 @@ pipeline {
@@ -182,7 +209,13 @@ pipeline {
@@ -234,35 +267,6 @@ String getBuildProfile() {
@@ -234,35 +267,6 @@ String getBuildProfile() {
sh "curl -XPOST -H 'authorization: Bearer ${getElementAccessToken()}' -d '${data}' https://matrix.ozg-sh.de/_matrix/client/v3/rooms/$room/send/m.room.message"
return readJSON ( text: sh (script: '''curl -XPOST -d \"$LOGIN_JSON\" https://matrix.ozg-sh.de/_matrix/client/v3/login''', returnStdout: true)).access_token
"formatted_body":"Info-Manager-Proxy: Build Failed. Stage: ${FAILED_STAGE} Build-ID: ${env.BUILD_NUMBER}"}"""