mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
modify Jenkinsfile
This commit is contained in:
parent
6674ab172f
commit
4d8ec3d197
1 changed files with 20 additions and 2 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -1,11 +1,29 @@
|
|||
pipeline {
|
||||
agent any
|
||||
tools {
|
||||
maven 'Maven 3.3.9'
|
||||
jdk 'jdk8'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout SCM') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage ('Initialize') {
|
||||
steps {
|
||||
sh '''
|
||||
echo "PATH = ${PATH}"
|
||||
echo "M2_HOME = ${M2_HOME}"
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
}
|
||||
sh 'chmod +x ./gradlew'
|
||||
sh './gradlew build -x test'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue