Update Jenkinsfile

This commit is contained in:
LOOHP 2020-08-09 00:37:52 +08:00 committed by GitHub
parent 77adda5646
commit f600b20903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 8 deletions

34
Jenkinsfile vendored
View File

@ -1,11 +1,29 @@
pipeline { pipeline {
agent any agent any
stages { tools {
stage('') { maven 'Maven 3.3.9'
steps { jdk 'jdk8'
build 'mvn clean install'
}
} }
stages {
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
} stage ('Build') {
} steps {
sh 'mvn clean install'
}
}
stage('Deliver') {
steps {
sh './jenkins/scripts/deliver.sh'
}
}
}
}