mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Updated pom with jfrog details and updated jenkins file
This commit is contained in:
parent
25aa2103b9
commit
bf42f47b0c
2 changed files with 28 additions and 18 deletions
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
|
@ -24,24 +24,6 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('build maven package') {
|
stage('build maven package') {
|
||||||
steps {
|
steps {
|
||||||
rtServer (
|
|
||||||
id: "ARTIFACTORY_SERVER",
|
|
||||||
url: "$artifactory_url"
|
|
||||||
)
|
|
||||||
rtMavenDeployer (
|
|
||||||
id: "MAVEN_DEPLOYER",
|
|
||||||
serverId: "ARTIFACTORY_SERVER",
|
|
||||||
releaseRepo: "spring-petclinic",
|
|
||||||
snapshotRepo: "spring-petclinic-snapshot"
|
|
||||||
)
|
|
||||||
|
|
||||||
rtMavenResolver (
|
|
||||||
id: "MAVEN_RESOLVER",
|
|
||||||
serverId: "ARTIFACTORY_SERVER",
|
|
||||||
releaseRepo: "spring-petclinic",
|
|
||||||
snapshotRepo: "spring-petclinic-snapshot"
|
|
||||||
)
|
|
||||||
|
|
||||||
sh "mvn validate compile test package"
|
sh "mvn validate compile test package"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
28
pom.xml
28
pom.xml
|
@ -311,6 +311,10 @@
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>Maven-Artifactory-Plugin</id>
|
||||||
|
<url>https://petclinic.jfrog.io</url>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
@ -363,6 +367,30 @@
|
||||||
</lifecycleMappingMetadata>
|
</lifecycleMappingMetadata>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jfrog.buildinfo</groupId>
|
||||||
|
<artifactId>artifactory-maven-plugin</artifactId>
|
||||||
|
<version>2.2.1</version>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-info</id>
|
||||||
|
<goals>
|
||||||
|
<goal>publish</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<publisher>
|
||||||
|
<contextUrl>https://petclinic.jfrog.io/artifactory</contextUrl>
|
||||||
|
<username>jfroguser</username>
|
||||||
|
<password>AdminPassword1</password>
|
||||||
|
<repoKey>spring-petclinic</repoKey>
|
||||||
|
<snapshotRepoKey>spring-petclinic-snapshot</snapshotRepoKey>
|
||||||
|
</publisher>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
Loading…
Reference in a new issue