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}"]) { |
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
// Reconfigure job to have Pipeline DSL configured inside job, instead of from scm. | |
// Put snippet below to pipeline text box | |
// Define additional job parameters: | |
// GITHUB_PROJECT: string, URL to your GitHub repository | |
// GITHUB_AUTH: string, credentials ID to use in case of private GitHub repository | |
node { | |
dir('pipeline_handover') { | |
checkout([$class: 'GitSCM', | |
branches: [[name: "origin-pull/$GITHUB_PR_NUMBER/$GITHUB_PR_COND_REF"]], | |
doGenerateSubmoduleConfigurations: false, |