ns-usbloader/Jenkinsfile

26 lines
528 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 {
stage('Test') {
steps {
sh 'mvn test'
}
}
2019-02-10 04:59:54 +03:00
stage('Build') {
steps {
sh 'mvn clean package'
2019-02-10 04:59:54 +03:00
}
}
}
post {
always {
2019-08-14 05:37:58 +03:00
archiveArtifacts artifacts: 'target/*.jar, target/*.exe', onlyIfSuccessful: true
2019-02-10 04:59:54 +03:00
}
}
}