Merge pull request #7077 from jakemcdermott/zuul-retry-chromium-download

Retry chromium download in zuul

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-05-19 20:35:19 +00:00
committed by GitHub
5 changed files with 27 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
REVISION=588429
CHROMIUM_URL="https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/${REVISION}/chrome-linux.zip"
interval=30
retries=6
status=1
until [ $retries -eq 0 ] || [ $status -eq 0 ]; do
wget ${CHROMIUM_URL} -O /tmp/chrome-linux.zip
status=$?
sleep $interval
((retries--))
done
unzip -o -d /tmp /tmp/chrome-linux.zip

View File

@@ -1,7 +1,7 @@
const path = require('path');
const webpackConfig = require('./webpack.spec');
process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = process.env.CHROME_BIN || require('puppeteer').executablePath();
const SRC_PATH = path.resolve(__dirname, '../../client/src');
const NODE_MODULES = path.resolve(__dirname, '../../node_modules');

View File

@@ -1,7 +1,7 @@
const path = require('path');
const webpackConfig = require('../../build/webpack.test.js');
process.env.CHROME_BIN = require('puppeteer').executablePath();
process.env.CHROME_BIN = process.env.CHROME_BIN || require('puppeteer').executablePath();
const SRC_PATH = path.resolve(__dirname, '../../client/src');