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

pinal pushed a commit to branch ATLAS-5223
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit c25c897cffacc16f33964d4fc5ce98a3648c25f7
Author: Pinal Shah <[email protected]>
AuthorDate: Tue Feb 24 11:11:47 2026 +0530

    ATLAS-5223: Add option in Pre-commit to add profile during build
---
 dev-support/test-patch.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh
index 9b10af453..e07a017df 100755
--- a/dev-support/test-patch.sh
+++ b/dev-support/test-patch.sh
@@ -135,6 +135,9 @@ parseArgs() {
     --branch=*)
       BRANCH=${i#*=}
       ;;
+    --profile=*)
+      PROFILE=${i#*=}
+      ;;
     --skip-ut=*)
       SKIP_UT=${i#*=}
       ;;
@@ -593,6 +596,11 @@ buildAndInstall () {
 
   MVN_GOALS="clean install -DskipCheck"
 
+  if [[ $PROFILE != "" ]]; then
+    echo "Profile $PROFILE is being used."
+    MVN_GOALS+=" -P$PROFILE"
+  fi
+
   if [[ $SKIP_UT == "true" ]]; then
     echo "Unit Tests flag set to true."
     MVN_GOALS+=" -DskipUTs"

Reply via email to