mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Create Jenkins_Pipeline
This commit is contained in:
parent
f9424b548a
commit
8fd3f029b0
1 changed files with 14 additions and 0 deletions
14
Jenkins_Pipeline
Normal file
14
Jenkins_Pipeline
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
node{
|
||||||
|
stage('SCM') {
|
||||||
|
//git clone
|
||||||
|
git 'https://github.com/spring-projects/spring-petclinic.git'
|
||||||
|
}
|
||||||
|
stage('Build package') {
|
||||||
|
//Build maven package
|
||||||
|
sh 'mvn package'
|
||||||
|
}
|
||||||
|
stage('Archive') {
|
||||||
|
// Archiving artifacts.
|
||||||
|
archiveArtifacts 'target/*.jar'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue