mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
adding scritps
This commit is contained in:
parent
1b6674bbed
commit
96498e60de
1 changed files with 2 additions and 14 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -19,12 +19,7 @@ pipeline {
|
|||
/////////////////////////////////////////////////////////////////////
|
||||
// END
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
def server = Artifactory.server('jenkins-artifactory-server')
|
||||
def artifactoryMaven = Artifactory.newMavenBuild()
|
||||
artifactoryMaven.tool = 'maven'
|
||||
artifactoryMaven.deployer releaseRepo:'wm-java', snapshotRepo:'libs-snapshot-local', server: server
|
||||
def buildInfo = Artifactory.newBuildInfo()
|
||||
artifactoryMaven.opts = "-Dskip.tests=true"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// START : Stages
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
@ -34,13 +29,6 @@ pipeline {
|
|||
echo "//////////////// build <<< ${env.BUILD_ID} >>> started ////////////////////"
|
||||
}
|
||||
}
|
||||
stage ('Build') {
|
||||
buildInfo = artifactoryMaven.run pom: 'pom.xml', goals: 'clean package'
|
||||
}
|
||||
|
||||
stage ('Publish build info') {
|
||||
server.publishBuildInfo buildInfo
|
||||
}
|
||||
stage('build maven package') {
|
||||
steps {
|
||||
sh "java -version"
|
||||
|
@ -55,7 +43,7 @@ pipeline {
|
|||
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||
rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
|
||||
releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||
rtMavenRun (tool: 'M2_HOME', pom: './pom.xml',goals: 'clean install',
|
||||
rtMavenRun (tool: '$M2_HOME', pom: './pom.xml',goals: 'clean install',
|
||||
deployerId: "MAVEN_DEPLOYER",resolverId: "MAVEN_RESOLVER")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue