mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
locate mvn
This commit is contained in:
parent
9b9a86cd7b
commit
11b5a29f13
1 changed files with 5 additions and 3 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -31,9 +31,11 @@ pipeline {
|
|||
}
|
||||
stage('build maven package') {
|
||||
steps {
|
||||
sh "mvn clean validate compile test package"
|
||||
sh "ls -la target"
|
||||
sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
||||
sh "java -version"
|
||||
sh "mvn -version"
|
||||
// sh "mvn clean validate compile test package"
|
||||
// sh "ls -la target"
|
||||
// sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
||||
rtServer (id: 'jenkins-artifactory-server',url: 'https://petclinic.jfrog.io/artifactory',username: 'jfroguser',
|
||||
password: 'AdminPassword1',bypassProxy: true,timeout: 300)
|
||||
rtMavenDeployer (id: "MAVEN_DEPLOYER",serverId: "jenkins-artifactory-server",
|
||||
|
|
Loading…
Reference in a new issue