Skip to content

Commit

Permalink
Install from /plugins closest to top level
Browse files Browse the repository at this point in the history
Consider only the first found /plugins folder and ignore others.

This handles zip bundles that include a top level folder, which is
common when zipping up configs in a folder.
  • Loading branch information
pyranja committed Jun 5, 2022
1 parent b1308a3 commit e9c5174
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$TEST_TYPE" != "simple" ]; then
sed -i -e "s|$TEST_ID.jmx|$JMETER_SCRIPT|g" test.json

# copy bundled plugin jars to jmeter extension folder to make them available to jmeter
BUNDLED_PLUGIN_DIR=`find $PWD -maxdepth 1 -type d -name "plugins"`
BUNDLED_PLUGIN_DIR=`find $PWD -type d -name "plugins" | head -n 1`
# attempt to copy only if a /plugins folder is present in upload
if [ -z "$BUNDLED_PLUGIN_DIR" ]; then
echo "skipping plugin installation (no /plugins folder in upload)"
Expand Down

0 comments on commit e9c5174

Please sign in to comment.