I am trying to extract last entry from an curl output to only show me the plugin-name and version. Unfortunately miserably failing with my command. Here is the command being used at my end
curl --silent https://jenkins-updates.cloudbees.com/download/plugins/blueocean-github-pipeline/ --ssl-no-revoke | findstr href |Select-String -Pattern "[0-9]/([^<]*)<" |Select-Object -last 1 | ForEach-Object { $_.Matches[0].Groups[1].Value }
Output its giving is blueocean-github-pipeline.hpi">1.25.3
I wish to display only the following blueocean-github-pipeline 1.25.3
and remove "> with a tab in between
How should I go about it?
Thanks in advance