From b4dc7961ecbf51a89e03e258108ef1d5a9fda51a Mon Sep 17 00:00:00 2001 From: yuobrezkov Date: Wed, 9 Apr 2025 18:11:08 +0300 Subject: [PATCH] ili da? --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4248374..9226b61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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() + 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" \