Created
January 16, 2020 06:54
-
-
Save LeoQuote/ef99eeb9d85ec72d0f23c7f7e40523ba 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 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." | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
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 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