Merge "[chromedriver] Amend upstream download link"

This commit is contained in:
Zuul 2023-08-13 09:49:58 +00:00 committed by Gerrit Code Review
commit 0d4dd84f59

View File

@ -56,7 +56,7 @@
shell: |-
set -ex
CHROME_VERSION=$(dpkg -s google-chrome-stable | grep -Po '(?<=^Version: ).*' | awk -F'.' '{print $1"."$2"."$3}')
DRIVER_URL=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.channels.Stable.downloads.chrome[] | select(.platform=="linux64" and (.url | test($chrome_version))).url')
DRIVER_URL=$(wget -qO- https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r --arg chrome_version "$CHROME_VERSION" '.channels.Stable.downloads.chromedriver[] | select(.platform=="linux64" and (.url | test($chrome_version))).url')
wget -O /tmp/chromedriver.zip ${DRIVER_URL}
args:
executable: /bin/bash
@ -65,5 +65,7 @@
unarchive:
src: /tmp/chromedriver.zip
dest: /etc/selenium
extra_opts: ["-j"]
include: ["*/chromedriver"]
remote_src: yes
...