Commit 680fcd6b by Administrator

Added Jenkinsfile

parent 1fac83c3
pipeline { pipeline {
agent { agent {
docker { docker {
image 'maven:3-alpine' image 'maven:3-alpine'
args '-v /root/.m2:/root/.m2' args '-v /root/.m2:/root/.m2'
}
} }
stages {
stage('Build') { }
steps { stages {
sh 'mvn -B -DskipTests clean package' stage('Build') {
} steps {
} sh 'mvn -B -DskipTests clean package'
stage('Test') { }
steps { }
sh 'mvn test' stage('Test') {
} steps {
post { sh 'mvn test'
always { }
junit 'target/surefire-reports/*.xml' post {
} always {
} junit 'target/surefire-reports/*.xml'
} }
}
}
stage('Put out') {
steps {
sh 'll'
}
} }
} }
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment