Create Jenkins_Pipeline

This commit is contained in:
Ramparitala 2019-12-27 10:23:00 +00:00 committed by GitHub
parent f9424b548a
commit 8fd3f029b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
Jenkins_Pipeline Normal file
View 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'
}
}