mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 00:25:50 +00:00
added Jenkinsfile
This commit is contained in:
parent
e2fbc56130
commit
698dc7950f
1 changed files with 30 additions and 0 deletions
30
Jenkinsfile
vendored
Normal file
30
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('pull') {
|
||||
steps {
|
||||
git branch: "main",
|
||||
credentialsId: 'azima-git-ssh',
|
||||
url: 'git://github.com/VSAzima/spring-petclinic'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
steps {
|
||||
script {
|
||||
docker.image('maven:3.3-jdk-8').inside {
|
||||
// /var/jenkins_home/workspace/MeFirstPipelineJob
|
||||
sh 'mvn -B clean package -Dcheckstyle.skip'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// // stage('push') {
|
||||
// // steps {
|
||||
// // echo 'Pushing ...'
|
||||
// //
|
||||
// // }
|
||||
// // }
|
||||
// }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue