mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Create jenkinsfile
This commit is contained in:
parent
e7c879ed3a
commit
b5021203db
1 changed files with 20 additions and 0 deletions
20
jenkinsfile
Normal file
20
jenkinsfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
node {
|
||||||
|
|
||||||
|
stage('SCM') {
|
||||||
|
// git clone
|
||||||
|
git 'https://github.com/spring-projects/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage ('build the packages') {
|
||||||
|
// mvn package
|
||||||
|
sh './mvnw package'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
stage ('archival') {
|
||||||
|
// archiving artifacts
|
||||||
|
archive 'target/*.jar'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue