github.com/kubeshop/testkube@v1.17.23/contrib/executor/jmeter/scripts/entrypoint.sh (about)

     1  #!/bin/bash
     2  
     3  EXECUTOR_CUSTOM_PLUGINS_FOLDER="${RUNNER_DATADIR}/uploads/plugins"
     4  
     5  if [ -d $EXECUTOR_CUSTOM_PLUGINS_FOLDER ];
     6  then
     7      echo "Copying custom plugins from ${EXECUTOR_CUSTOM_PLUGINS_FOLDER} to ${JMETER_HOME}/lib/ext"
     8      for plugin in ${EXECUTOR_CUSTOM_PLUGINS_FOLDER}/*.jar; do
     9          echo "Copying plugin: $plugin"
    10          cp $plugin ${JMETER_HOME}/lib/ext
    11      done;
    12  else
    13      echo "No custom plugins found at ${EXECUTOR_CUSTOM_PLUGINS_FOLDER}"
    14  fi
    15  
    16  if [ -f "/entrypoint.sh" ];
    17  then
    18    echo "Executing custom entrypoint script at /entrypoint.sh"
    19    /entrypoint.sh $@
    20  else
    21    echo "Executing JMeter command directly: jmeter $@"
    22    jmeter $@
    23  fi
    24