From 975e856bc44b90b21ef989f187581a6b2a2d5238 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sat, 4 Jun 2022 12:50:26 +0200 Subject: [PATCH] Quote restrictedto role, it can be multi-word --- .../bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh | 6 +++--- .../bulk_prelaunch_jobs/criteria/list_of_mdls/postissue.sh | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tracker_automations/bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh b/tracker_automations/bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh index 1fabc7f1..73550d5f 100755 --- a/tracker_automations/bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh +++ b/tracker_automations/bulk_prelaunch_jobs/bulk_prelaunch_jobs.sh @@ -144,11 +144,11 @@ while read issue; do # Execute the criteria postissue. It will perform the needed changes in the tracker for the current issue if [[ ${quiet} == "false" ]]; then # Let's see if there is any restriction to the comment in the Tracker - commentrestriction= + restrictiontype= if [[ -n "${restrictedto}" ]]; then - commentrestriction="--role $restrictedto" + restrictiontype=--role fi - echo " - Sending results to the Tracker" + echo " - Sending results to the Tracker (${restrictiontype} ${restrictedto})" . "${mydir}/criteria/${criteria}/postissue.sh" fi done < "${resultfile}" diff --git a/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls/postissue.sh b/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls/postissue.sh index 78a80db9..c691f0b9 100755 --- a/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls/postissue.sh +++ b/tracker_automations/bulk_prelaunch_jobs/criteria/list_of_mdls/postissue.sh @@ -1,4 +1,5 @@ # Add the comment with results. +echo "${commentrestriction}" ${basereq} --action addComment \ --issue ${issue} \ - --file "${resultfile}.${issue}.txt" ${commentrestriction} + --file "${resultfile}.${issue}.txt" ${restrictiontype} "${restrictedto}"