mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:05:48 +00:00
adding scritps
This commit is contained in:
parent
e43b6cdbfc
commit
1b6674bbed
1 changed files with 13 additions and 1 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -19,7 +19,12 @@ pipeline {
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
// END
|
// 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
|
// START : Stages
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
@ -29,6 +34,13 @@ pipeline {
|
||||||
echo "//////////////// build <<< ${env.BUILD_ID} >>> started ////////////////////"
|
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') {
|
stage('build maven package') {
|
||||||
steps {
|
steps {
|
||||||
sh "java -version"
|
sh "java -version"
|
||||||
|
|
Loading…
Reference in a new issue