Some checks failed
studiorailgun/trpg/pipeline/head There was a failure building this commit
41 lines
1.1 KiB
Groovy
41 lines
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
maven '3.9.6'
|
|
}
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
|
sh "git submodule update --init --recursive" // make sure submodules are also checked out
|
|
}
|
|
}
|
|
stage ('Check Environment') {
|
|
steps {
|
|
sh 'mvn --version'
|
|
sh 'java -version'
|
|
sh 'echo $JAVA_HOME'
|
|
sh 'echo $JAVA_INCLUDE_PATH'
|
|
}
|
|
}
|
|
stage('Build (Engine)') {
|
|
steps {
|
|
sh 'mvn -B -DskipTests clean package'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
script {
|
|
catchError {
|
|
sh 'mvn test'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
junit testResults: 'target/surefire-reports/*.xml', keepLongStdio: true, testDataPublishers: [[$class:'AttachmentPublisher']]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |