Last active
June 6, 2016 17:37
-
-
Save kad/49084d0b4d2879787e0f58eba545d9b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_devices = [ "minnowboardturbot", "minnowboardmax" ] | |
stage "prepare" | |
def test_runs = [:] | |
for (int i=0; i < test_devices.size(); i++) { | |
def test_device = test_devices[i] | |
test_runs["test_${test_device}"] = { | |
node() { | |
echo "testing" | |
withEnv(["TEST_DEVICE=${test_device}"]) { | |
sh 'echo $TEST_DEVICE' | |
} | |
} | |
} | |
} | |
stage "test runs" | |
parallel test_runs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment