diff --git a/Jenkinsfile b/Jenkinsfile index 50be8c9..c6e1324 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,7 +80,7 @@ pipeline { """ echo "PR ${prId} merged successfully into master!" def context = "test-org/trust-module-frontend/pipeline/pr-${env.CHANGE_TARGET}" - def commitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim() + def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim() echo "commit hash = ${commitHash}" notify(context, GITEA_USER, GITEA_PASS, env.GITEA_REPOSITORY_URL, "trust-module-frontend", commitHash, "success") }