mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 05:15:02 -02:30
Retry chromium download in zuul
This commit is contained in:
14
awx/ui/build/zuul_download_chromium.sh
Executable file
14
awx/ui/build/zuul_download_chromium.sh
Executable 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
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user