diff --git a/.drone.star b/.drone.star
index 022e827804a..35bba97746b 100644
--- a/.drone.star
+++ b/.drone.star
@@ -572,14 +572,6 @@ def main(ctx):
pipelines,
)
- # always append notification step
- pipelines.append(
- pipelineDependsOn(
- notify(ctx),
- pipelines,
- ),
- )
-
pipelineSanityChecks(ctx, pipelines)
return pipelines
@@ -2672,45 +2664,6 @@ def makeGoGenerate(module):
},
]
-def notify(ctx):
- status = ["failure"]
- if ctx.build.event in ["cron", "tag"]:
- status.append("success")
-
- return {
- "kind": "pipeline",
- "type": "docker",
- "name": "chat-notifications",
- "clone": {
- "disable": True,
- },
- "steps": [
- {
- "name": "notify-matrix",
- "image": OC_CI_ALPINE,
- "environment": {
- "MATRIX_TOKEN": {
- "from_secret": "matrix_token",
- },
- },
- "commands": [
- "wget https://raw.githubusercontent.com/%s/%s/tests/config/drone/notification.sh" % (ctx.repo.slug, ctx.build.commit),
- "bash notification.sh",
- ],
- },
- ],
- "depends_on": [],
- "trigger": {
- "ref": [
- "refs/heads/master",
- "refs/heads/stable-*",
- "refs/heads/release*",
- "refs/tags/**",
- ],
- "status": status,
- },
- }
-
def ocisServer(storage = "ocis", volumes = [], depends_on = [], deploy_type = "", extra_server_environment = {}, with_wrapper = False, tika_enabled = False, debug = True, external_idp = False):
user = "0:0"
container_name = OCIS_SERVER_NAME
diff --git a/tests/config/drone/notification.sh b/tests/config/drone/notification.sh
deleted file mode 100644
index 9266676d954..00000000000
--- a/tests/config/drone/notification.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-COMMIT_SHA_SHORT=${DRONE_COMMIT:0:8}
-BUILD_STATUS="✅ Success"
-ROOMID="!rnWsCVUmDHDJbiSPMM:matrix.org"
-
-# helper functions
-log_error() {
- echo -e "\e[31m$1\e[0m"
-}
-
-log_info() {
- echo -e "\e[37m$1\e[0m"
-}
-
-log_success() {
- echo -e "\e[32m$1\e[0m"
-}
-
-# Determine build source: nightly, tag or branch
-if [[ "$DRONE_BUILD_EVENT" == "cron" ]]; then
- BUILD_SOURCE="nightly-$DRONE_BRANCH"
-elif [[ "$DRONE_BUILD_EVENT" == "tag" ]]; then
- BUILD_SOURCE="tag $DRONE_TAG"
-else
- BUILD_SOURCE="$DRONE_BRANCH"
-fi
-
-if [[ "$DRONE_BUILD_STATUS" == "failure" ]]; then
- BUILD_STATUS="❌️ Failure"
-fi
-
-message_html=''$BUILD_STATUS' '${DRONE_REPO}'#'$COMMIT_SHA_SHORT' ('${BUILD_SOURCE}') by '${DRONE_COMMIT_AUTHOR}''
-message_html=$(echo "$message_html" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')
-
-log_info "Sending report to the element chat...."
-
-response=$(curl -s -o /dev/null -X PUT -w "%{http_code}" 'https://matrix.org/_matrix/client/v3/rooms/'$ROOMID'/send/m.room.message/'$(date +%s) \
- -H "Authorization: Bearer "$MATRIX_TOKEN \
- -H 'Content-Type: application/json' \
- -d '{
- "msgtype": "m.text",
- "body": "'"$message_html"'",
- "format": "org.matrix.custom.html",
- "formatted_body": "'"$message_html"'"
- }')
-
-if [[ "$response" != "200" ]]; then
- log_error "❌ Error: Failed to send notification to element. Expected status code 200, but got $response."
- exit 1
-fi
-
-log_success "✅ Notification successfully sent to Element chat (ownCloud Infinite Scale Alerts)"