Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
62 lines
1.9 KiB
Groovy
62 lines
1.9 KiB
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
maven '3.9.6'
|
|
}
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
|
}
|
|
}
|
|
stage ('Check Environment') {
|
|
steps {
|
|
sh 'mvn --version'
|
|
sh 'java -version'
|
|
}
|
|
}
|
|
stage('Build (Engine)') {
|
|
steps {
|
|
sh 'mvn -B -DskipTests clean package'
|
|
}
|
|
}
|
|
stage('Build (Documentation)') {
|
|
steps {
|
|
sh 'cd ./docs && doxygen ./Doxyfile'
|
|
sh 'rm -rf /docs/*'
|
|
sh 'cd ./docs-dist/html && rm -f ./docs.tar.gz'
|
|
sh 'cd ./docs-dist/html && tar -czvf ./docs.tar.gz ./*'
|
|
sh 'cp ./docs-dist/html/docs.tar.gz /docs/docs.tar.gz && cd /docs/ && tar -xzvf ./docs.tar.gz'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
wrap(
|
|
[
|
|
$class: 'Xvfb',
|
|
additionalOptions: '',
|
|
assignedLabels: '',
|
|
autoDisplayName: true,
|
|
debug: true,
|
|
displayNameOffset: 0,
|
|
installationName: 'Default',
|
|
parallelBuild: true,
|
|
screen: '1920x1080x24',
|
|
timeout: 25
|
|
]
|
|
) {
|
|
try {
|
|
sh 'mvn test -P integration'
|
|
} catch(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
|
sh 'mvn test -P integration -DmaxLogs'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
junit testResults: 'target/surefire-reports/*.xml', keepLongStdio: true, testDataPublishers: [[$class:'AttachmentPublisher']]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |