Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
michelu89 committed May 13, 2024
1 parent 50ce1e1 commit 0e9f306
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ pipeline {
stage('MacOS Notarization') {
steps {
script {
def macOsFile = "signed_dir/ame-backend-${env.version}-mac"
sh "zip -j ame-backend-${env.version}-mac.zip signed_dir/ame-backend-${env.version}-mac"

def macOsFile = "ame-backend-${env.version}-mac.zip"

def jsonOptions = "options={\"primaryBundleId\": \"org.eclipse.esmf\", \"staple\": true};type=application/json"
def response = sh(script: "curl -X POST -F file=@${macOsFile} -F '${jsonOptions}' https://cbi.eclipse.org/macos/xcrun/notarize", returnStdout: true).trim()
Expand All @@ -110,7 +112,7 @@ pipeline {

sh "rm '${macOsFile}'"

sh "curl -JO -o AspectModelEditorBackend-${env.version}.app https://cbi.eclipse.org/macos/xcrun/${uuid}/download"
sh "curl -JO -o ame-backend-${env.version}-mac.zip https://cbi.eclipse.org/macos/xcrun/${uuid}/download"
}
}
}
Expand Down

0 comments on commit 0e9f306

Please sign in to comment.