Skip to content

Instantly share code, notes, and snippets.

@kad
Last active June 6, 2016 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kad/49084d0b4d2879787e0f58eba545d9b6 to your computer and use it in GitHub Desktop.
Save kad/49084d0b4d2879787e0f58eba545d9b6 to your computer and use it in GitHub Desktop.
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