Update Jenkinsfile

This commit is contained in:
LOOHP 2020-08-09 00:42:35 +08:00 committed by GitHub
parent f600b20903
commit 9754816a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 15 deletions

21
Jenkinsfile vendored
View File

@ -1,19 +1,14 @@
pipeline { pipeline {
agent any agent {
tools { docker {
maven 'Maven 3.3.9' image 'maven:3-alpine'
jdk 'jdk8' args '-v /root/.m2:/root/.m2'
}
}
options {
skipStagesAfterUnstable()
} }
stages { stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn clean install' sh 'mvn clean install'