1def configs = ["sierra", "yosemite"]
2
3def _build(label) {
4    node(label) {
5        try {
6            timeout(time: 30, unit: 'MINUTES') {
7                stage("Compile") {
8                    sh """
9                        set -xe
10
11                        /usr/local/bin/brew update
12                        /usr/local/bin/brew reinstall openssl@1.1 --build-bottle
13                    """
14                }
15            }
16        } finally {
17            deleteDir()
18        }
19    }
20}
21
22def builders = [:]
23
24for (_label in configs) {
25    def label = _label
26    builders[label] = {
27        _build(label)
28    }
29}
30
31parallel builders
32
33build job: 'pyca/cryptography/master', wait: false
34