mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Add initial jenkinsfile
This commit is contained in:
parent
c36452a2c3
commit
b83a0876b4
1 changed files with 18 additions and 0 deletions
18
Jenkinsfile
vendored
Normal file
18
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
node('Slave_AWS'){
|
||||
stage('Checkout')
|
||||
{
|
||||
git 'https://github.com/spring-projects/spring-petclinic.git'
|
||||
}
|
||||
stage('Build')
|
||||
{
|
||||
sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"'
|
||||
}
|
||||
stage('Unit Test')
|
||||
{
|
||||
junit 'target/surefire-reports/*.xml'
|
||||
}
|
||||
stage('Archive artifact')
|
||||
{
|
||||
archiveArtifacts 'target/spring-petclinic-1.5.1.jar'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue