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

rantunes pushed a commit to branch jit-executor-10
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/jit-executor-10 by this push:
     new 110e4f29e Fix jit-executor-rc workflow
110e4f29e is described below

commit 110e4f29e070688abbaa6da6a26c072686ff5fc7
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Tue Aug 27 09:41:25 2024 -0300

    Fix jit-executor-rc workflow
---
 .../workflows/publish-jitexecutor-native-rc.yml    | 57 ++++++++++++++++++++--
 1 file changed, 52 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/publish-jitexecutor-native-rc.yml 
b/.github/workflows/publish-jitexecutor-native-rc.yml
index 88f509cce..22b990070 100644
--- a/.github/workflows/publish-jitexecutor-native-rc.yml
+++ b/.github/workflows/publish-jitexecutor-native-rc.yml
@@ -10,6 +10,9 @@ on:
       release_candidate_version:
         description: "Release candidate version"
         required: true
+      kogito_runtimes_repository:
+        description: "Kogito runtimes repository"
+        required: true
 
 jobs:
   build_jitexecutor_native:
@@ -17,7 +20,7 @@ jobs:
     strategy:
       fail-fast: true
       matrix:
-        os: [ubuntu-latest, macos-latest, windows-latest]
+        os: [ubuntu-latest, macos-latest]
 
     steps:
       - name: Set version
@@ -54,15 +57,59 @@ jobs:
         with:
           gpg_private_key: ${{ secrets.GPG_KEY }}
 
+      - name: Setup maven settings (Linux and MacOS)
+        if: (runner.os == 'Linux' || runner.os == 'macOS')
+        env: 
+          M2_PATH: ${{ github.workspace }}
+          KOGITO_RUNTIMES_REPO: ${{ 
github.event.inputs.kogito_runtimes_repository }}
+        run: |
+          mkdir -p ${M2_PATH}/.m2
+          echo "<settings>
+           <servers>
+             <server>
+               <id>apache.releases.https</id>
+               <username>${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}</username>
+               <password>${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}</password>
+             </server>
+             <server>
+               <id>apache.snapshots.https</id>
+               <username>${{ secrets.NEXUS_USER }}</username>
+               <password>${{ secrets.NEXUS_PW }}</password>
+             </server>
+           </servers>
+           <profiles>
+            <profile>
+              <id>additional_repos</id>
+              <repositories>
+                <repository>
+                  <id>apache-kie-kogito-runtimes-staging-repository</id>
+                  <name>Apache KIE Kogito Runtimes Staging Repository</name>
+                  <url>${KOGITO_RUNTIMES_REPO} </url>
+                  <layout>default</layout>
+                  <releases>
+                    <enabled>true</enabled>
+                    <updatePolicy>never</updatePolicy>
+                  </releases>
+                  <snapshots>
+                    <enabled>false</enabled>
+                    <updatePolicy>never</updatePolicy>
+                  </snapshots>
+                </repository>
+              </repositories>
+            </profile>
+          </profiles>
+          <activeProfiles>
+            <activeProfile>additional_repos</activeProfile>
+          </activeProfiles>
+          </settings>" > ${M2_PATH}/.m2/settings.xml
+
       - name: "Set up JDK 17"
         uses: actions/setup-java@v4
         with:
           java-version: "17"
           distribution: "temurin"
-          server-id: apache.releases.https
-          server-username: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
-          server-password: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
-
+          settings-path: ${{ github.workspace }}/.m2
+      
       - name: "Setup Linux"
         if: runner.os == 'Linux'
         run: |


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

Reply via email to