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") } } }