Created
April 4, 2019 22:05
-
-
Save adamtaylor/ad58f1f350bb00e81a36ad3fa992c4bd to your computer and use it in GitHub Desktop.
Jenkinsfile with nested states
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('Tests') { | |
stages { | |
stage('Compilation') { | |
steps { | |
sh 'make test > test_results.xml || true' | |
junit 'test_results.xml' | |
} | |
} | |
stage('Unit Tests') { | |
steps { | |
sh 'make test > test_results.xml || true' | |
junit 'test_results.xml' | |
} | |
} | |
stage('Integration Tests') { | |
steps { | |
sh 'make test > test_results.xml || true' | |
junit 'test_results.xml' | |
} | |
} | |
stage('Static Analysis Tests') { | |
steps { | |
sh 'make test > test_results.xml || true' | |
junit 'test_results.xml' | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment