From 293ffc604a31b810bce55c1ef572242c051d3f0a Mon Sep 17 00:00:00 2001 From: Vulpovile Date: Sat, 11 Jan 2025 11:36:58 -0800 Subject: [PATCH] Add reporting --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 61c34c4..43737f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,4 +36,14 @@ pipeline { } } } + post { + success { + // Report success to Gitea + giteaSetCommitStatus(context: 'success', description: 'Build Passed', targetUrl: env.BUILD_URL) + } + failure { + // Report failure to Gitea + giteaSetCommitStatus(context: 'failure', description: 'Build Failed', targetUrl: env.BUILD_URL) + } + } }