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

* wip

* wip

* WIP

* WIP
  • Loading branch information
yesamer authored Nov 14, 2024
1 parent 538f33c commit ffd004f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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
16 changes: 13 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@

<properties>
<project.build.outputTimestamp>2024-01-16T00:00:00Z</project.build.outputTimestamp>
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
</properties>

<build>
Expand All @@ -99,9 +98,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-artifact-plugin</artifactId>
<version>${version.maven.artifact.plugin}</version>
<configuration>
<outputTimestamp>${project.build.outputTimestamp}</outputTimestamp>
<!-- Generated images in zip format are not reproducible-->
<ignore>image-build.zip</ignore>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -131,10 +131,20 @@
<module>explainability</module>
<module>trusty</module>
<module>jitexecutor</module>
<module>apps-integration-tests</module>
</modules>

<profiles>
<profile>
<id>allSubmodules</id>
<activation>
<property>
<name>!only.reproducible</name>
</property>
</activation>
<modules>
<module>apps-integration-tests</module>
</modules>
</profile>
<profile>
<id>optaplanner-downstream</id>
<activation>
Expand Down

0 comments on commit ffd004f

Please sign in to comment.