try catch test stage
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
c030409202
commit
feac6e4f02
63
Jenkinsfile
vendored
63
Jenkinsfile
vendored
@ -29,32 +29,51 @@ pipeline {
|
|||||||
sh 'cp ./docs-dist/html/docs.tar.gz /docs/docs.tar.gz && cd /docs/ && tar -xzvf ./docs.tar.gz'
|
sh 'cp ./docs-dist/html/docs.tar.gz /docs/docs.tar.gz && cd /docs/ && tar -xzvf ./docs.tar.gz'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
try {
|
||||||
steps {
|
stage('Test') {
|
||||||
wrap(
|
steps {
|
||||||
[
|
wrap(
|
||||||
$class: 'Xvfb',
|
[
|
||||||
additionalOptions: '',
|
$class: 'Xvfb',
|
||||||
assignedLabels: '',
|
additionalOptions: '',
|
||||||
autoDisplayName: true,
|
assignedLabels: '',
|
||||||
debug: true,
|
autoDisplayName: true,
|
||||||
displayNameOffset: 0,
|
debug: true,
|
||||||
installationName: 'Default',
|
displayNameOffset: 0,
|
||||||
parallelBuild: true,
|
installationName: 'Default',
|
||||||
screen: '1920x1080x24',
|
parallelBuild: true,
|
||||||
timeout: 25
|
screen: '1920x1080x24',
|
||||||
]
|
timeout: 25
|
||||||
) {
|
]
|
||||||
try {
|
) {
|
||||||
sh 'mvn test -P integration'
|
sh 'mvn test -P integration'
|
||||||
} catch(err) {
|
}
|
||||||
sh 'mvn test -P integration -DmaxLogs'
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
junit testResults: 'target/surefire-reports/*.xml', keepLongStdio: true, testDataPublishers: [[$class:'AttachmentPublisher']]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
} catch(err) {
|
||||||
always {
|
stage('Debug Test Script') {
|
||||||
junit testResults: 'target/surefire-reports/*.xml', keepLongStdio: true, testDataPublishers: [[$class:'AttachmentPublisher']]
|
steps {
|
||||||
|
wrap(
|
||||||
|
[
|
||||||
|
$class: 'Xvfb',
|
||||||
|
additionalOptions: '',
|
||||||
|
assignedLabels: '',
|
||||||
|
autoDisplayName: true,
|
||||||
|
debug: true,
|
||||||
|
displayNameOffset: 0,
|
||||||
|
installationName: 'Default',
|
||||||
|
parallelBuild: true,
|
||||||
|
screen: '1920x1080x24',
|
||||||
|
timeout: 25
|
||||||
|
]
|
||||||
|
) {
|
||||||
|
sh 'mvn test -P integration -DmaxLogs'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user