Configure Taurus/Jmeter/Plugins to use alternative download url for plugin dependencies

347 views
Skip to first unread message

Joseph Madden

unread,
Mar 3, 2022, 7:50:45 AM3/3/22
to codename-taurus
Hi All,
I'm using Taurus in a constrained environment where only https outgoing requests are permitted.
When using Jmeter & Plugins Manager, there's an outgoing request to retrieve a jar using the following url:


This fails as it is not using https.  Is there a way to configure the url it's using?

The related taurus configuration is as follows:
modules:
  jmeter:
    path: ~/.bzt/jmeter-taurus/bin/jmeter
    download-link: https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-{version}.zip
    version: 5.4.2  # minimal supported version of JMeter is 5.0
    force-ctg: true   # true by default
    detect-plugins: true
    fix-jars: true
    plugins-manager:
      download-link: https://search.maven.org/remotecontent?filepath=kg/apc/jmeter-plugins-manager/{version}/jmeter-plugins-manager-{version}.jar
      version: 1.3   # minimum 0.16
    command-runner:
      download-link: https://search.maven.org/remotecontent?filepath=kg/apc/cmdrunner/{version}/cmdrunner-{version}.jar
      version: 2.2   # minimum 2.0

The error observed in the taurus log is as follows:
2022-03-03 12:21:38,535 INFO o.j.r.PluginManagerCMD: Downloading jetty-alpn-client...
2022-03-03 12:21:38,983 INFO o.j.r.PluginManagerCMD: Downloaded jetty-alpn-client...
2022-03-03 12:21:38,983 INFO o.j.r.JARSourceHTTP: Downloading: http://search.maven.org/remotecontent?filepath=net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar
2022-03-03 12:21:38,983 INFO o.j.r.PluginManagerCMD: Downloading json-lib...
2022-03-03 12:21:39,012 ERROR o.j.r.PluginManager: Failed to download json-lib
java.net.ConnectException: Connection refused (Connection refused)

Thanks for the help.

Alla

unread,
Mar 9, 2022, 9:16:42 AM3/9/22
to codename-taurus
Hello Joseph,

Unfortunately, this happens due to Plugins Manager logic. We neither store nor manage plugins links.

BR,
Alla

Trial Hero

unread,
May 25, 2022, 2:47:17 PM5/25/22
to codename-taurus
I'm running up against the same deal as Joseph. So would the advice here be to track down support in modifying the jmeter-plugins-manager jar itself, rather than modify anything on the Taurus image side? Surely we can't be the only individuals that run into the need to configure alternate download urls. 

Trial Hero

unread,
May 25, 2022, 3:08:16 PM5/25/22
to codename-taurus
More specifically, I think one starter question would be if the following value can be overridden by a user:


If so, I'm guessing the solution is:

1. Pull the jmeter-plugin-manager itself from an alternative repo
2. Said alternative jmeter-plugin-manager would then point to an alternate repo to pull/handle individual plugins

Is this line of thinking accurate?

DT

unread,
May 26, 2022, 3:43:48 AM5/26/22
to codename-taurus
I think you additionally need to set jpgc.repo.address property pointing to your own repository, something like:

modules:
  jmeter:
    properties:
      jpgc.repo.address: http://path/to/your/local/jmeter/plugins/repository/descriptor.json

More information:

Reply all
Reply to author
Forward
0 new messages