ozg-7493 add send failure message
Compare changes
+ 12
− 30
@@ -21,6 +21,8 @@
@@ -21,6 +21,8 @@
@@ -29,6 +31,7 @@ pipeline {
@@ -29,6 +31,7 @@ pipeline {
@@ -190,6 +193,7 @@ pipeline {
@@ -190,6 +193,7 @@ pipeline {
@@ -204,7 +208,14 @@ pipeline {
@@ -204,7 +208,14 @@ pipeline {
@@ -256,35 +267,6 @@ String getBuildProfile() {
@@ -256,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":"antragraum-proxy: Build Failed. Stage: ${FAILED_STAGE} Build-ID: ${env.BUILD_NUMBER}"}"""