ili da?
test-org/test-ci-cd/pipeline/pr-main This commit looks good Details

pull/27/head 0.0.4
yuobrezkov 2025-04-09 18:11:08 +03:00
parent 99bccca3e6
commit b4dc7961ec
1 changed files with 3 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -97,8 +97,10 @@ pipeline {
http://git.entcor/api/v1/repos/deployer3000/${env.IMAGE_NAME}/pulls/${prId}/merge
"""
echo "PR ${prId} merged successfully into main!"
sleep(time: 5, unit: 'SECONDS')
def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim()
def prCommitHash = sh(script: "git rev-parse HEAD", returnStdout: true).trim()
sh """
curl -v -X POST -u "${GITEA_USER}:${GITEA_PASS}" \
-H "Content-Type: application/json" \