mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
added jenkins
This commit is contained in:
commit
e72342b56e
1 changed files with 42 additions and 0 deletions
42
Jenkinsfile
vendored
Normal file
42
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
pipeline{
|
||||||
|
agent any
|
||||||
|
tools{
|
||||||
|
maven "MVN_DEFAULT"
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('vcs')
|
||||||
|
{
|
||||||
|
steps{
|
||||||
|
git url:'https://github.com/spring-projects/spring-petclinic.git',
|
||||||
|
branch: 'main'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('exce mvn') {
|
||||||
|
steps{
|
||||||
|
MAVENRUN(
|
||||||
|
tool: 'MVN_DEFAULT',
|
||||||
|
pom:'pom.xml',
|
||||||
|
goal:'clean install',
|
||||||
|
deployerID:'MVN_DEPLOYER'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('deploy mvn')
|
||||||
|
{
|
||||||
|
steps{
|
||||||
|
MAVENDEPLOY(
|
||||||
|
id: 'spc-deployer',
|
||||||
|
serverId: 'JFROG_INSTANCE_ID',
|
||||||
|
releaseRepo: 'srini415-libs-release-local',
|
||||||
|
snapshotRepo: 'srini415-libs-snapshot-local'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('reporting') {
|
||||||
|
steps {
|
||||||
|
junit testResults: 'target/surefire-reports/*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue