diff --git a/Jenkinsfile b/Jenkinsfile index ea42d57..83a28c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,6 +60,14 @@ pipeline { status: currentBuild.result, targetUrl: "${siteUrl}", message: "Site available: ${siteUrl}" + + withCredentials([string(credentialsId: 'matrix-room-id', variable: 'ROOM_ID')]){ + matrixSendMessage hostname: 'synapse.osuosl.org', + accessTokenCredentialsId: 'matrix-notification', + roomId: ROOM_ID, + body: "osuosl/website - #${env.BUILD_ID} finished with status ${currentBuild.result} [Open](${env.BUILD_URL})", + formattedBody: "osuosl/website - #${env.BUILD_ID} finished with status ${currentBuild.result}
Open Jenkins Run
Open Staging Site" + } } } }