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) (#6109)

* [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 <[email protected]>
Co-authored-by: Gabriele-Cardosi <[email protected]>
  • Loading branch information
3 people authored Oct 2, 2024
1 parent a666ca6 commit efb89b0
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 @@ -129,7 +129,9 @@ pipeline {

if (isRelease()) {
releaseUtils.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
mavenCommand.withProfiles(['apache-release'])
mavenCommand
.withProfiles(['apache-release'])
.withProperty('only.reproducible')
}

configFileProvider([configFile(fileId: env.MAVEN_SETTINGS_CONFIG_FILE_ID, variable: 'MAVEN_SETTINGS_FILE')]) {
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 efb89b0

Please sign in to comment.