From 45bf683ca0a89b90c77c563ff8e5c709d855e98d Mon Sep 17 00:00:00 2001 From: Timothy Le Bon Date: Wed, 11 Dec 2024 16:09:33 +0100 Subject: [PATCH] chore: fix issue with commit hash --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a09cf74ad86..43631264d7a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -91,6 +91,7 @@ pipeline { steps { timeout(time: 15, unit: 'MINUTES') { script { + def commit_hash = sh(script: 'git rev-parse HEAD', returnStdout: true).trim() final String apiUrl = 'https://api.github.com/repos/wireapp/wire-webapp/actions/workflows/79043704/runs' final String curlCmd = "curl -u \${CREDENTIALS} ${apiUrl}" waitUntil { @@ -109,6 +110,7 @@ pipeline { stage('Check deployment') { steps { script { + def commit_hash = sh(script: 'git rev-parse HEAD', returnStdout: true).trim() try { // Wait until deployment has finished (20 retries * 30 seconds == 10 minutes) timeout(time: 10, unit: 'MINUTES') {