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
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -29,6 +29,7 @@ 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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
wrap(
|
wrap(
|
||||||
@ -45,11 +46,7 @@ pipeline {
|
|||||||
timeout: 25
|
timeout: 25
|
||||||
]
|
]
|
||||||
) {
|
) {
|
||||||
try {
|
|
||||||
sh 'mvn test -P integration'
|
sh 'mvn test -P integration'
|
||||||
} catch(err) {
|
|
||||||
sh 'mvn test -P integration -DmaxLogs'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
@ -58,5 +55,27 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch(err) {
|
||||||
|
stage('Debug Test Script') {
|
||||||
|
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