Reputation: 43
How can I use command prompt to get the Chrome version on the vmImage on Azure DevOps pipeline?
Upvotes: 1
Views: 5297
Reputation: 36
You can get the Chrome version in Azure Devops with a Powershell task containing this code:
$chromeVersion = ((Get-Item "C:\Program Files\Google\Chrome\Application\chrome.exe").VersionInfo).ProductVersion
Upvotes: 1
Reputation: 19026
Try below script in Command line
task:
wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value
Then choose corresponding vmimage
you want to run.
Upvotes: 2