mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:05:48 +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 {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
tools {
|
||||||
|
maven 'Maven 3.3.9'
|
||||||
|
jdk 'jdk8'
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
stage('Checkout SCM') {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Initialize') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
echo "PATH = ${PATH}"
|
||||||
|
echo "M2_HOME = ${M2_HOME}"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
sh 'chmod +x ./gradlew'
|
||||||
}
|
sh './gradlew build -x test'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue