mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
code cleanup
This commit is contained in:
parent
da3f5e506a
commit
97b3f4ca1c
2 changed files with 2 additions and 13 deletions
|
@ -5,8 +5,7 @@ COPY pom.xml ./
|
||||||
RUN mvn dependency:go-offline
|
RUN mvn dependency:go-offline
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN mvn validate compile test
|
RUN mvn validate compile test package
|
||||||
RUN mvn package
|
|
||||||
|
|
||||||
FROM openjdk:8-jre-alpine
|
FROM openjdk:8-jre-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -28,21 +28,11 @@ pipeline {
|
||||||
echo "build <<< ${BUILD_NUMBER} >>> starting..."
|
echo "build <<< ${BUILD_NUMBER} >>> starting..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build maven package') {
|
stage('build and push to artifactory') {
|
||||||
steps {
|
steps {
|
||||||
// sh "java -version"
|
|
||||||
// sh "mvn -version"
|
|
||||||
// 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 -u jfroguser:AdminPassword1 -T ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "${artifactory_repo}/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
|
sh 'curl -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',
|
|
||||||
// password: 'AdminPassword1',bypassProxy: true,timeout: 300)
|
|
||||||
// rtMavenDeployer (id: "MAVEN_DEPLOYER",serverId: "jenkins-artifactory-server",
|
|
||||||
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
|
||||||
// rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
|
|
||||||
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build docker image') {
|
stage('build docker image') {
|
||||||
|
|
Loading…
Reference in a new issue