This is an automated email from the ASF dual-hosted git repository.

yamer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new ffd004f4a [incubator-kie-issues#1504] Conditionally build all or only 
reproducible modules based on only.reproducible flag (#2107)
ffd004f4a is described below

commit ffd004f4aa12745f6907e6698bc6ec474880c961
Author: Yeser Amer <[email protected]>
AuthorDate: Thu Nov 14 14:11:22 2024 +0100

    [incubator-kie-issues#1504] Conditionally build all or only reproducible 
modules based on only.reproducible flag (#2107)
    
    * wip
    
    * wip
    
    * WIP
    
    * WIP
---
 .ci/jenkins/Jenkinsfile.deploy |  4 +++-
 pom.xml                        | 16 +++++++++++++---
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index 58e0c532b..51afe0271 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -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')]) {
diff --git a/pom.xml b/pom.xml
index 554fc1875..0b560abd2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -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>
@@ -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>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to