pipeline { agent none stages { stage('Build') { parallel { stage('MacOS') { agent { label 'macos' } stages { stage('unlock-keychain') { steps { unlockMacOSKeychain keychainId: 'jenkins-agent-keychain' } } stage('make pkg') { steps { sh 'make pkg' } } stage('archive') { steps { archiveArtifacts artifacts: 'target/*.pkg', onlyIfSuccessful: true } } } } } } } }