#858 - Build BOM artifacts properly.

This commit is contained in:
Greg Turnquist
2019-07-26 08:32:13 -05:00
parent 697be06653
commit 5a4660c5ea
2 changed files with 16 additions and 1 deletions

9
Jenkinsfile vendored
View File

@@ -35,7 +35,7 @@ pipeline {
}
}
}
stage('Release to artifactory') {
stage('Build project & BOM then release to artifactory') {
when {
anyOf {
branch 'master'
@@ -56,6 +56,13 @@ pipeline {
}
steps {
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ' +
'./mvnw clean dependency:tree source:jar javadoc:javadoc javadoc:jar install -pl "!bom" -B -U '
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean install -pl bom -B -U'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pwith-bom-client verify -pl bom-client -B -U'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
'-Dartifactory.server=https://repo.spring.io ' +
"-Dartifactory.username=${ARTIFACTORY_USR} " +

View File

@@ -172,6 +172,14 @@
</build>
</profile>
<profile>
<id>with-bom-client</id>
<modules>
<module>bom-client</module>
</modules>
</profile>
<!-- Build profile for the build run to deploy to Maven Central -->
<profile>