Skip to content

Instantly share code, notes, and snippets.

@bitwiseman
Created October 23, 2019 16:40
Show Gist options
  • Save bitwiseman/7cdfe437d40f76595836305db0bcdfc3 to your computer and use it in GitHub Desktop.
Save bitwiseman/7cdfe437d40f76595836305db0bcdfc3 to your computer and use it in GitHub Desktop.
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