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

snuyanzin pushed a commit to branch ci_utils
in repository 
https://gitbox.apache.org/repos/asf/flink-connector-shared-utils.git


The following commit(s) were added to refs/heads/ci_utils by this push:
     new 11be5c6  [FLINK-33776] Allow to specify optional profile for connectors
11be5c6 is described below

commit 11be5c693081aba252ab39576ec1c6f7fde5765c
Author: Sergey Nuyanzin <sergey.nuyan...@aiven.io>
AuthorDate: Fri Dec 8 13:17:30 2023 +0100

    [FLINK-33776] Allow to specify optional profile for connectors
---
 .github/workflows/_testing.yml | 7 +++++++
 .github/workflows/ci.yml       | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/.github/workflows/_testing.yml b/.github/workflows/_testing.yml
index cbb9eaa..aca4d74 100644
--- a/.github/workflows/_testing.yml
+++ b/.github/workflows/_testing.yml
@@ -45,6 +45,13 @@ jobs:
       flink_version: 1.16.1
       connector_branch: ci_utils
       run_dependency_convergence: false
+  optional_maven_profile:
+    uses: ./.github/workflows/ci.yml
+    with:
+      flink_version: 1.16-SNAPSHOT
+      connector_branch: ci_utils
+      jdk_version: 11
+      optional_maven_profiles: "java11,java11-target"
   multiple-branches:
     strategy:
       matrix:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cfd9752..e9d1fcc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,6 +55,10 @@ on:
         description: "Branch that need to be checked out"
         required: false
         type: string
+      optional_maven_profiles:
+        description: "Optional maven profiles."
+        required: false
+        type: string
 
 jobs:
   compile_and_test:
@@ -93,6 +97,10 @@ jobs:
         if: ${{ inputs.run_dependency_convergence }}
         run: echo 
"MVN_DEPENDENCY_CONVERGENCE=-Dflink.convergence.phase=install 
-Pcheck-convergence" >> $GITHUB_ENV
 
+      - name: "Enable optional maven profiles"
+        if: ${{ inputs.optional_maven_profiles }}
+        run: echo "MVN_COMMON_OPTIONS=${MVN_COMMON_OPTIONS} -P ${{ 
inputs.optional_maven_profiles }}" >> $GITHUB_ENV
+
       - name: "Determine Flink binary url"
         run: |
           binary_url=${{ inputs.flink_url }}

Reply via email to