diff --git a/Jenkinsfile b/Jenkinsfile index b58e8e7c..bb7a0bdc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} " + diff --git a/pom.xml b/pom.xml index 77b991d7..f94fb113 100644 --- a/pom.xml +++ b/pom.xml @@ -172,6 +172,14 @@ + + with-bom-client + + + bom-client + + +