Open nakka-sandeep opened 8 months ago
Thanks for the report @nakka-sandeep . Based on the contents of https://github.com/GoogleChromeLabs/chrome-for-testing it looks like changes are needed in the crawler for Chromedriver versions. Are you interested in making those changes and proposing a pull request?
@MarkEWaite i am not proficient at groovy script. Please review below code whether it works
`import groovy.json.JsonSlurper import groovy.json.JsonOutput
def url = 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json' def jsonString = new URL(url).text def jsonData = new JsonSlurper().parseText(jsonString)
def jsonList = []
// Extract information only for the "Stable" channel def stableData = jsonData.channels.Stable def chromeDriverData = stableData.downloads.chromedriver chromeDriverData.each { entry -> def id = "${entry.platform}_${stableData.version}" def url = entry.url jsonList << ["id": id, "url": url] }
lib.DataWriter.write("org.jenkins-ci.plugins.chromedriver.ChromeDriver",JSONObject.fromObject([list:jsonList]));`
Thanks for the proposal @nakka-sandeep . I'm not very proficient with groovy script either. Could you submit it as a pull request in hopes that others will be able to assist?
Reproduction steps
Currently jenkins supports only 114 version (https://updates.jenkins.io/updates/org.jenkins-ci.plugins.chromedriver.ChromeDriver.json)
so latest version is not getting picked
Expected Results
It has to pick the latest version of chrome driver while executing .
https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json
Actual Results
https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json
Anything else?
No response