29 lines
779 B
Groovy
29 lines
779 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage ("Install") {
|
|
steps {
|
|
sh 'mamba env update --file environment.yml'
|
|
sh 'echo "mamba activate islandsurvivalcraft" >> ~/.bashrc'
|
|
sh "mvn validate"
|
|
}
|
|
}
|
|
stage ("Build") {
|
|
steps {
|
|
sh "mvn compile"
|
|
}
|
|
}
|
|
stage ("Test") {
|
|
steps {
|
|
sh "mvn -Dmaven.test.skip=false test"
|
|
junit 'target/surefire-reports/TEST-*.xml'
|
|
}
|
|
}
|
|
stage ("Package") {
|
|
steps {
|
|
sh "mvn package"
|
|
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
|
|
}
|
|
}
|
|
}
|
|
} |