ns-usbloader/Jenkinsfile

31 lines
682 B
Text
Raw Normal View History

2019-02-10 04:59:54 +03:00
pipeline {
agent {
docker {
image 'maven:3-jdk-11'
args '-v /home/docker/jenkins/files/m2:/root/.m2'
}
}
stages {
2020-10-28 19:10:08 +03:00
stage('Build') {
steps {
2020-10-28 19:10:08 +03:00
sh 'mvn -B -DskipTests clean package'
}
post {
success {
archiveArtifacts artifacts: 'target/*.jar, target/*.exe'
}
}
}
2020-10-28 19:10:08 +03:00
stage('Test') {
2019-02-10 04:59:54 +03:00
steps {
2020-10-28 19:10:08 +03:00
sh 'mvn test'
2019-02-10 04:59:54 +03:00
}
2020-10-28 19:10:08 +03:00
post {
always {
junit 'target/surefire-reports/*.xml'
}
2019-02-10 04:59:54 +03:00
}
2020-10-28 19:10:08 +03:00
}
2019-02-10 04:59:54 +03:00
}
}