0

In the Azure DevOps pipeline I am doing POC on instead of downloading the JMeter extension from Marketplace, I am trying to download it using PowerShell/Command line task.

I am not getting the exact command or approach that I can use to download Jmeterpowe using PowerShell.

1 Answers1

1

I think you're looking for Invoke-WebRequest cmdlet

  • To download JMeter:

     Invoke-WebRequest -Uri https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.4.1.zip -OutFile c:\temp\jmeter.zip
    
  • To unpack JMeter you can use Expand-Archive:

     Expand-Archive -LiteralPath 'c:\temp\jmeter.zip' -DestinationPath c:\temp
    
  • To launch JMeter:

     C:\temp\apache-jmeter-5.4.1\bin\jmeter.bat
    

Remember that you will need to have Java SDK of version 8+ in order to be able to run JMeter

More information: Get Started With JMeter: Installation & Tests

Dmitri T
  • 140,090
  • 4
  • 71
  • 123