I am using drone.io for my CI/CD pipeline. I want to use jmeter/gatling as part of this for response assertion. Currently, drone.io is not providing a plugin for the same.
I was thinking of integrating a jmeter run by creating a bash plugin and triggering a run against the environment. Is this the right solution? Is the jdk base image good enough to run jmeter script in the container?
As long as JDK is supported by JMeter (for example JMeter 3.3 requires Java 8 and doesn't support Java 9) you should be good to go.
Apart from command-line execution you can also consider JMeter Ant Task or JMeter Maven Plugin which are capable of generating HTML-based load test reports.