Add Jenkinsfile
This commit is contained in:
parent
e89d483993
commit
22fc884898
1 changed files with 21 additions and 0 deletions
21
Jenkinsfile
vendored
Normal file
21
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'maven:3-jdk-11'
|
||||
args '-v /home/docker/jenkins/files/m2:/root/.m2'
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn -B -DskipTests clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: 'target/*.jar, target/*.exe', onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue