mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
jenkinsfile updated
This commit is contained in:
parent
c08891346b
commit
3250c62237
1 changed files with 9 additions and 10 deletions
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -13,8 +13,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
artifactory_url="https://petclinic.jfrog.io/artifactory"
|
artifactory_url="https://petclinic.jfrog.io/artifactory"
|
||||||
artifactory_repo="spring-petclinic"
|
artifactory_repo="${artifactory_url}/spring-petclinic"
|
||||||
build_id="$BUILD_NUMBER"
|
|
||||||
}
|
}
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
// END
|
// END
|
||||||
|
@ -26,17 +25,17 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('build started') {
|
stage('build started') {
|
||||||
steps {
|
steps {
|
||||||
echo "build <<< ${env.BUILD_ID} >>> starting..."
|
echo "build <<< ${BUILD_NUMBER} >>> starting..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// stage('build maven package') {
|
stage('build maven package') {
|
||||||
// steps {
|
steps {
|
||||||
// sh "java -version"
|
// sh "java -version"
|
||||||
// sh "mvn -version"
|
// sh "mvn -version"
|
||||||
// withMaven {
|
// withMaven {
|
||||||
// sh "mvn clean validate compile test package"
|
sh "mvn clean validate compile test package"
|
||||||
// sh "ls -la target"
|
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 'curl -X -u jfroguser:AdminPassword1 -T ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "${artifactory_repo}/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
||||||
// rtServer (id: 'jenkins-artifactory-server',url: 'https://petclinic.jfrog.io/artifactory',username: 'jfroguser',
|
// rtServer (id: 'jenkins-artifactory-server',url: 'https://petclinic.jfrog.io/artifactory',username: 'jfroguser',
|
||||||
// password: 'AdminPassword1',bypassProxy: true,timeout: 300)
|
// password: 'AdminPassword1',bypassProxy: true,timeout: 300)
|
||||||
// rtMavenDeployer (id: "MAVEN_DEPLOYER",serverId: "jenkins-artifactory-server",
|
// rtMavenDeployer (id: "MAVEN_DEPLOYER",serverId: "jenkins-artifactory-server",
|
||||||
|
@ -44,8 +43,8 @@ pipeline {
|
||||||
// rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
|
// rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
|
||||||
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
||||||
// }
|
// }
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
stage('build docker image') {
|
stage('build docker image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in a new issue