From 8cc0fe3dd79d337b9d9a59c357ca0d282555d19f Mon Sep 17 00:00:00 2001 From: yuobrezkov Date: Wed, 9 Apr 2025 16:41:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 92ccc9f..73525ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,7 +82,7 @@ pipeline { script { if (env.CHANGE_BRANCH?.startsWith('rc')) { echo "Attempting to merge PR ${env.CHANGE_ID} into master..." - def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim() + def commitHash = sh(script: "git rev-parse HEAD~1", returnStdout: true).trim() || null withCredentials([usernamePassword(credentialsId: 'gitea_creds', usernameVariable: 'GITEA_USER', passwordVariable: 'GITEA_PASS')]) { def prId = env.CHANGE_ID echo "GIT_COMMIT: ${env.GIT_COMMIT}"