Skip to content

Instantly share code, notes, and snippets.

@LeoQuote
Created January 16, 2020 06:54
Show Gist options
  • Save LeoQuote/ef99eeb9d85ec72d0f23c7f7e40523ba to your computer and use it in GitHub Desktop.
Save LeoQuote/ef99eeb9d85ec72d0f23c7f7e40523ba to your computer and use it in GitHub Desktop.
pipeline {
agent any
stages {
stage('matrix') {
matrix {
axes {
axis {
name 'REALVALUE'
values '1', '2', '3'
}
}
stages {
stage('equal to 1?') {
steps {
sh "test 1 -eq ${REALVALUE}"
}
post {
success {
echo "We are the champions."
}
failure {
echo "You lost."
}
}
}
}
}
}
}
}
pipeline {
agent any
stages {
stage('matrix') {
matrix {
axes {
axis {
name 'REALVALUE'
values '1', '2', '3'
}
}
stages {
stage('equal to 1?') {
steps {
sh "test 1 -eq ${REALVALUE}"
}
}
}
post {
success {
echo "We are the champions."
}
failure {
echo "You lost."
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment