Skip to content

Commit

Permalink
[incubator-kie-issues#1504] Conditionally build all or only reproduci…
Browse files Browse the repository at this point in the history
…ble modules based on only.reproducible flag (#6108)

* [incubator-kie-issues#1504] Conditionally build all or only reproducible modules based on only.reproducible flag

* [incubator-kie-issues#1504] Conditionally build all or only reproducible modules based on only.reproducible flag - only for release build

---------

Co-authored-by: Gabriele-Cardosi <gabriele.cardosi@ibm.com>
  • Loading branch information
gitgabrio and Gabriele-Cardosi authored Oct 2, 2024
1 parent 18fdc46 commit 7052421
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ pipeline {

if (isRelease()) {
release.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
mavenCommand.withProfiles(['apache-release'])
mavenCommand
.withProfiles(['apache-release'])
.withProperty('only.reproducible')
mavenRunClosure()
} else {
mavenRunClosure()
Expand Down
44 changes: 36 additions & 8 deletions drools-drlonyaml-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,40 @@
<artifactId>drools-drlonyaml-parent</artifactId>
<name>Drools :: DRL on YAML</name>
<packaging>pom</packaging>
<modules>
<module>drools-drlonyaml-schemagen</module>
<module>drools-drlonyaml-model</module>
<module>drools-drlonyaml-todrl</module>
<module>drools-drlonyaml-cli</module>
<module>drools-drlonyaml-cli-tests</module>
<module>drools-drlonyaml-integration-tests</module>
</modules>

<profiles>
<profile>
<id>allSubmodules</id>
<activation>
<property>
<name>!only.reproducible</name>
</property>
</activation>
<modules>
<module>drools-drlonyaml-schemagen</module>
<module>drools-drlonyaml-model</module>
<module>drools-drlonyaml-todrl</module>
<module>drools-drlonyaml-cli</module>
<module>drools-drlonyaml-cli-tests</module>
<module>drools-drlonyaml-integration-tests</module>
</modules>
</profile>

<profile>
<id>onlyReproducible</id>
<activation>
<property>
<name>only.reproducible</name>
</property>
</activation>
<modules>
<module>drools-drlonyaml-schemagen</module>
<module>drools-drlonyaml-model</module>
<module>drools-drlonyaml-todrl</module>
<module>drools-drlonyaml-cli</module>
<module>drools-drlonyaml-cli-tests</module>
</modules>
</profile>
</profiles>

</project>

0 comments on commit 7052421

Please sign in to comment.