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

25
Jenkinsfile vendored
View File

@ -1,22 +1,17 @@
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') { stage('Build') {
steps { steps {
sh ''' sh 'mvn clean install'
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
stage ('Build') {
steps {
sh 'mvn clean install'
} }
} }