From f60d11b1c14d9844aa575b2c9ef74de86e45282a Mon Sep 17 00:00:00 2001 From: Michele Santoro Date: Mon, 5 Feb 2024 16:08:19 +0100 Subject: [PATCH] Update Jenkinsfile --- .jenkins/Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.jenkins/Jenkinsfile b/.jenkins/Jenkinsfile index 5fc0a754..62c6fe06 100644 --- a/.jenkins/Jenkinsfile +++ b/.jenkins/Jenkinsfile @@ -45,7 +45,9 @@ pipeline { while (status == 'IN_PROGRESS') { 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] + def inProgressResponse = jsonSlurper.parseText(response) + uuid = inProgressResponse.uuid + status = inProgressResponse.notarizationStatus.status } if (status != 'COMPLETE') {