mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Add Jenkinsfile
This commit is contained in:
parent
5c35771a20
commit
6bc276f7d6
1 changed files with 40 additions and 0 deletions
40
Jenkinsfile
vendored
Normal file
40
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
environment {
|
||||||
|
|
||||||
|
PATH = "C:\\WINDOWS\\SYSTEM32"
|
||||||
|
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
echo "Building..."
|
||||||
|
bat "./mvnw clean"
|
||||||
|
bat "./mvnw compile"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('Test') {
|
||||||
|
|
||||||
|
steps {
|
||||||
|
echo "Testing..."
|
||||||
|
bat "./mvnw test"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
echo "Packaging..."
|
||||||
|
bat "./mvnw package"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
echo "Deploying..."
|
||||||
|
echo "./mvnw deploy with distributionManagement set in pom.xml"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue