Handle multiple search extension passed by JJB
[releng/global-jjb.git] / releasenotes / notes / handle-multi-search-extensions-47a88a33ae39456f.yaml
diff --git a/releasenotes/notes/handle-multi-search-extensions-47a88a33ae39456f.yaml b/releasenotes/notes/handle-multi-search-extensions-47a88a33ae39456f.yaml
new file mode 100644 (file)
index 0000000..5fd560d
--- /dev/null
@@ -0,0 +1,42 @@
+---
+fixes:
+  - |
+    Handle multiple search extension or patterns passed by upstream JJB
+    ARCHIVE_ARTIFACTS param as a single string by spliting these values
+    before being passed to ``lftools deploy archives``.
+
+    .. code-block:: bash
+
+       ARCHIVE_ARTIFACTS="**/*.prop \
+                         **/*.log \
+                         **/target/surefire-reports/*-output.txt \
+                         **/target/failsafe-reports/failsafe-summary.xml \
+                         **/hs_err_*.log **/target/feature/feature.xml"
+
+    For example, the above env variable passed to the script and to
+    ``lftools deploy archives`` as:
+
+    .. code-block:: bash
+
+       lftools deploy archives -p **/*.prop \
+                         **/*.log \
+                         **/target/surefire-reports/*-output.txt \
+                         **/target/failsafe-reports/failsafe-summary.xml \
+                         **/hs_err_*.log **/target/feature/feature.xml \
+                         "$NEXUS_URL" \
+                         "$NEXUS_PATH" \
+                         "$WORKSPACE"
+
+    The correct way of passing this as per lftools implmentation is:
+
+    .. code-block:: bash
+
+       lftools deploy archives -p '**/*.prop' \
+                         -p '**/*.log' \
+                         -p '**/target/surefire-reports/*-output.txt' \
+                         -p '**/target/failsafe-reports/failsafe-summary.xml' \
+                         -p '**/hs_err_*.log' \
+                         -p '**/target/feature/feature.xml' \
+                         "$NEXUS_URL" \
+                         "$NEXUS_PATH" \
+                         "$WORKSPACE"