InterviewSolution
Saved Bookmarks
| 1. |
How does Jenkins handle a failed test case? |
Answer»
Sample code: Pipeline { agent any stages { stage(‘Build’) { steps { sh ‘./test_suite1 build’ } } Stage(‘Test’) { Steps { sh ‘./test_suite1 test’ } } } post { ALWAYS { archiveArtifacts ‘build/libs/**/*.jar’ } } }This gives the artifacts path and the filename |
|