Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
michelu89 committed Feb 5, 2024
1 parent b80802d commit 6801f5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ pipeline {

def response = sh(script: "curl -s -X POST -F file=@${dmg} -F '${jsonOptions}' https://cbi.eclipse.org/macos/xcrun/notarize", returnStdout: true).trim()

def uuid = response.find(/"uuid"\s*:\s*"([^"]+)/)[1]
def status = response.find(/"status"\s*:\s*"([^"]+)/)[1]
def jsonSlurper = new groovy.json.JsonSlurper()
def object = jsonSlurper.parseText(response)
def uuid = object.uuid
def status = object.notarizationStatus.status

while (status == 'IN_PROGRESS') {
sleep(time: 1, unit: 'MINUTES') // Warten für 1 Minute
sleep(time: 1, unit: 'MINUTES')
response = sh(script: "curl -s https://cbi.eclipse.org/macos/xcrun/${uuid}/status", returnStdout: true).trim()
status = response.find(/"status"\s*:\s*"([^"]+)/)[1]
}
Expand Down

0 comments on commit 6801f5d

Please sign in to comment.