From 101ce14197d97d659bc658c2f14cac16d8a49d68 Mon Sep 17 00:00:00 2001 From: yuobrezkov Date: Mon, 10 Mar 2025 17:20:13 +0300 Subject: [PATCH] Notify after PR 2 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee1edff..d1ca2b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,7 +80,8 @@ pipeline { """ echo "PR ${prId} merged successfully into master!" def context = "test-org/trust-module-frontend/pipeline/pr-${env.CHANGE_TARGET}" - notify(context, GITEA_USER, GITEA_PASS, env.GITEA_REPOSITORY_URL, "trust-module-frontend", env.GIT_COMMIT, "success") + def commitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim() + notify(context, GITEA_USER, GITEA_PASS, env.GITEA_REPOSITORY_URL, "trust-module-frontend", commitHash, "success") } } } -- 2.40.1