Created
October 23, 2019 16:40
-
-
Save bitwiseman/7cdfe437d40f76595836305db0bcdfc3 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
pipeline { | |
agent none | |
stages { | |
stage("foo") { | |
matrix { | |
axes { | |
axis { | |
name 'OS_VALUE' | |
values "linux", "windows", "mac" | |
} | |
axis { | |
name 'BROWSER_VALUE' | |
values "firefox", "chrome", "safari", "ie" | |
} | |
} | |
excludes { | |
exclude { | |
axis { | |
name 'OS_VALUE' | |
valuesIn 'linux' | |
} | |
axis { | |
name 'BROWSER_VALUE' | |
valuesIn 'safari' | |
} | |
} | |
exclude { | |
axis { | |
name 'OS_VALUE' | |
valuesNotIn 'windows' | |
} | |
axis { | |
name 'BROWSER_VALUE' | |
valuesNotIn 'ie' | |
} | |
} | |
} | |
stages { | |
stage("first") { | |
steps { | |
echo "First branch" | |
echo "OS=${OS_VALUE}" | |
echo "BROWSER=${BROWSER_VALUE}" | |
} | |
} | |
stage("second") { | |
steps { | |
echo "Second branch" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment