Skip to content

Commit

Permalink
chore: fix issue with commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Dec 11, 2024
1 parent 6cfb499 commit 45bf683
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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') {
Expand Down

0 comments on commit 45bf683

Please sign in to comment.