440 lines
16 KiB
YAML
440 lines
16 KiB
YAML
|
|
# E2E Testing Pipeline using Native Woodpecker Services
|
||
|
|
# No Docker-in-Docker - uses pre-built images for fast startup
|
||
|
|
|
||
|
|
kind: pipeline
|
||
|
|
type: docker
|
||
|
|
name: e2e
|
||
|
|
|
||
|
|
when:
|
||
|
|
event: pull_request
|
||
|
|
|
||
|
|
# All background services - services get proper DNS resolution in Woodpecker
|
||
|
|
# Note: Services can't depend on steps, so they wait internally for contracts.env
|
||
|
|
services:
|
||
|
|
# PostgreSQL for Ponder
|
||
|
|
- name: postgres
|
||
|
|
image: postgres:16-alpine
|
||
|
|
environment:
|
||
|
|
POSTGRES_USER: ponder
|
||
|
|
POSTGRES_PASSWORD: ponder_local
|
||
|
|
POSTGRES_DB: ponder_local
|
||
|
|
|
||
|
|
# Anvil blockchain fork
|
||
|
|
- name: anvil
|
||
|
|
image: ghcr.io/foundry-rs/foundry:latest
|
||
|
|
entrypoint:
|
||
|
|
- anvil
|
||
|
|
- --host=0.0.0.0
|
||
|
|
- --port=8545
|
||
|
|
- --fork-url=https://sepolia.base.org
|
||
|
|
- --fork-block-number=20000000
|
||
|
|
- --chain-id=31337
|
||
|
|
- --accounts=10
|
||
|
|
- --balance=10000
|
||
|
|
|
||
|
|
# Ponder indexer - waits for contracts.env from bootstrap
|
||
|
|
- name: ponder
|
||
|
|
image: registry.niovi.voyage/harb/ponder-ci:latest
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
# Wait for contracts.env (bootstrap writes it after deploying)
|
||
|
|
echo "=== Waiting for contracts.env ==="
|
||
|
|
for i in $(seq 1 120); do
|
||
|
|
if [ -f /woodpecker/src/contracts.env ]; then
|
||
|
|
echo "Found contracts.env after $i attempts"
|
||
|
|
break
|
||
|
|
fi
|
||
|
|
echo "Waiting for contracts.env... ($i/120)"
|
||
|
|
sleep 3
|
||
|
|
done
|
||
|
|
|
||
|
|
if [ ! -f /woodpecker/src/contracts.env ]; then
|
||
|
|
echo "ERROR: contracts.env not found after 6 minutes"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Source contract addresses from bootstrap
|
||
|
|
. /woodpecker/src/contracts.env
|
||
|
|
echo "=== Contract addresses ==="
|
||
|
|
echo "KRAIKEN=$KRAIKEN"
|
||
|
|
echo "STAKE=$STAKE"
|
||
|
|
echo "START_BLOCK=$START_BLOCK"
|
||
|
|
|
||
|
|
# Export env vars required by ponder
|
||
|
|
export DATABASE_URL="$DATABASE_URL"
|
||
|
|
export DATABASE_SCHEMA="ponder_ci_$START_BLOCK"
|
||
|
|
export START_BLOCK="$START_BLOCK"
|
||
|
|
export KRAIKEN_ADDRESS="$KRAIKEN"
|
||
|
|
export STAKE_ADDRESS="$STAKE"
|
||
|
|
export PONDER_NETWORK=BASE_SEPOLIA_LOCAL_FORK
|
||
|
|
export PONDER_RPC_URL_BASE_SEPOLIA_LOCAL_FORK="$PONDER_RPC_URL_1"
|
||
|
|
export PONDER_RPC_URL_1="$PONDER_RPC_URL_1"
|
||
|
|
|
||
|
|
echo "=== Starting Ponder (pre-built image) ==="
|
||
|
|
cd /app/services/ponder
|
||
|
|
{
|
||
|
|
echo "DATABASE_URL=${DATABASE_URL}"
|
||
|
|
echo "PONDER_RPC_URL_1=${PONDER_RPC_URL_1}"
|
||
|
|
echo "DATABASE_SCHEMA=${DATABASE_SCHEMA}"
|
||
|
|
echo "START_BLOCK=${START_BLOCK}"
|
||
|
|
} > .env.local
|
||
|
|
exec npm run dev
|
||
|
|
|
||
|
|
# Webapp - waits for contracts.env from bootstrap
|
||
|
|
- name: webapp
|
||
|
|
image: registry.niovi.voyage/harb/webapp-ci:latest
|
||
|
|
environment:
|
||
|
|
CI: "true"
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
# Wait for contracts.env (bootstrap writes it after deploying)
|
||
|
|
echo "=== Waiting for contracts.env ==="
|
||
|
|
for i in $(seq 1 120); do
|
||
|
|
if [ -f /woodpecker/src/contracts.env ]; then
|
||
|
|
echo "Found contracts.env after $i attempts"
|
||
|
|
break
|
||
|
|
fi
|
||
|
|
echo "Waiting for contracts.env... ($i/120)"
|
||
|
|
sleep 3
|
||
|
|
done
|
||
|
|
|
||
|
|
if [ ! -f /woodpecker/src/contracts.env ]; then
|
||
|
|
echo "ERROR: contracts.env not found after 6 minutes"
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Source contract addresses from bootstrap
|
||
|
|
. /woodpecker/src/contracts.env
|
||
|
|
|
||
|
|
# Export environment variables for Vite
|
||
|
|
export VITE_KRAIKEN_ADDRESS="$KRAIKEN"
|
||
|
|
export VITE_STAKE_ADDRESS="$STAKE"
|
||
|
|
export VITE_DEFAULT_CHAIN_ID=31337
|
||
|
|
export VITE_LOCAL_RPC_PROXY_TARGET=http://anvil:8545
|
||
|
|
export VITE_LOCAL_GRAPHQL_PROXY_TARGET=http://ponder:42069
|
||
|
|
export VITE_SWAP_ROUTER=0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4
|
||
|
|
export VITE_BASE_PATH=/app/
|
||
|
|
|
||
|
|
# kraiken-lib/src MUST be baked into the pre-built image
|
||
|
|
# (Woodpecker services don't have workspace access, so we can't copy from /woodpecker/src/)
|
||
|
|
echo "=== Verifying kraiken-lib/src in pre-built image ==="
|
||
|
|
if [ -d /app/kraiken-lib/src ]; then
|
||
|
|
echo "kraiken-lib/src found in image"
|
||
|
|
ls -la /app/kraiken-lib/
|
||
|
|
else
|
||
|
|
echo "ERROR: kraiken-lib/src not found in image!"
|
||
|
|
echo "The webapp-ci image needs to be rebuilt. Run build-ci-images pipeline."
|
||
|
|
echo "Services in Woodpecker don't have workspace access - kraiken-lib/src must be baked into the image."
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "=== Starting webapp (pre-built image) ==="
|
||
|
|
cd /app/web-app
|
||
|
|
# Explicitly set CI=true to disable Vue DevTools in vite.config.ts
|
||
|
|
# (prevents 500 errors from devtools path resolution in CI environment)
|
||
|
|
export CI=true
|
||
|
|
echo "CI=$CI (should be 'true' to disable Vue DevTools)"
|
||
|
|
exec npm run dev -- --host 0.0.0.0 --port 5173 --base /app/
|
||
|
|
|
||
|
|
# Landing page - no contracts needed, starts immediately
|
||
|
|
- name: landing
|
||
|
|
image: registry.niovi.voyage/harb/landing-ci:latest
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
echo "=== Starting landing (pre-built image) ==="
|
||
|
|
cd /app/landing
|
||
|
|
exec npm run dev -- --host 0.0.0.0 --port 5174
|
||
|
|
|
||
|
|
# Caddy proxy - waits for contracts.env to ensure other services are starting
|
||
|
|
- name: caddy
|
||
|
|
image: caddy:2.8-alpine
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
# Wait briefly for other services to start
|
||
|
|
echo "=== Waiting for contracts.env before starting Caddy ==="
|
||
|
|
for i in $(seq 1 120); do
|
||
|
|
if [ -f /woodpecker/src/contracts.env ]; then
|
||
|
|
echo "Found contracts.env, starting Caddy..."
|
||
|
|
break
|
||
|
|
fi
|
||
|
|
echo "Waiting for contracts.env... ($i/120)"
|
||
|
|
sleep 3
|
||
|
|
done
|
||
|
|
|
||
|
|
printf '%s\n' ':8081 {' \
|
||
|
|
' route /app* {' \
|
||
|
|
' reverse_proxy webapp:5173' \
|
||
|
|
' }' \
|
||
|
|
' route /api/graphql* {' \
|
||
|
|
' uri strip_prefix /api' \
|
||
|
|
' reverse_proxy ponder:42069' \
|
||
|
|
' }' \
|
||
|
|
' route /api/rpc* {' \
|
||
|
|
' uri strip_prefix /api/rpc' \
|
||
|
|
' reverse_proxy anvil:8545' \
|
||
|
|
' }' \
|
||
|
|
' reverse_proxy landing:5174' \
|
||
|
|
'}' > /etc/caddy/Caddyfile
|
||
|
|
exec caddy run --config /etc/caddy/Caddyfile
|
||
|
|
|
||
|
|
steps:
|
||
|
|
# Step 0: Install dependencies for onchain compilation
|
||
|
|
- name: install-deps
|
||
|
|
image: node:20-alpine
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
apk add --no-cache git
|
||
|
|
echo "=== Installing uni-v3-lib dependencies ==="
|
||
|
|
git submodule update --init --recursive
|
||
|
|
cd onchain/lib/uni-v3-lib
|
||
|
|
npm install
|
||
|
|
|
||
|
|
# Step 1: Wait for base services and deploy contracts
|
||
|
|
# Uses pre-built node-ci image with Foundry pre-installed (saves ~60s)
|
||
|
|
- name: bootstrap
|
||
|
|
image: registry.niovi.voyage/harb/node-ci:latest
|
||
|
|
depends_on:
|
||
|
|
- install-deps
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
|
||
|
|
# Foundry is pre-installed in node-ci image
|
||
|
|
echo "=== Foundry version ==="
|
||
|
|
forge --version
|
||
|
|
cast --version
|
||
|
|
|
||
|
|
echo "=== Waiting for Anvil ==="
|
||
|
|
for i in $(seq 1 60); do
|
||
|
|
if cast chain-id --rpc-url http://anvil:8545 2>/dev/null; then
|
||
|
|
echo "Anvil is ready"
|
||
|
|
break
|
||
|
|
fi
|
||
|
|
echo "Waiting for Anvil... ($i/60)"
|
||
|
|
sleep 2
|
||
|
|
done
|
||
|
|
|
||
|
|
echo "=== Deploying contracts ==="
|
||
|
|
cd onchain
|
||
|
|
|
||
|
|
# Deploy contracts using forge script
|
||
|
|
forge script script/DeployLocal.sol:DeployLocal \
|
||
|
|
--rpc-url http://anvil:8545 \
|
||
|
|
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
|
||
|
|
--broadcast
|
||
|
|
|
||
|
|
# Extract deployed addresses using Node.js (available in this image)
|
||
|
|
node -e "
|
||
|
|
const data = require('./broadcast/DeployLocal.sol/31337/run-latest.json');
|
||
|
|
const txns = data.transactions;
|
||
|
|
const kraiken = txns.find(t => t.contractName === 'Kraiken').contractAddress;
|
||
|
|
const stake = txns.find(t => t.contractName === 'Stake').contractAddress;
|
||
|
|
const lm = txns.find(t => t.contractName === 'LiquidityManager').contractAddress;
|
||
|
|
console.log('KRAIKEN=' + kraiken);
|
||
|
|
console.log('STAKE=' + stake);
|
||
|
|
console.log('LIQUIDITY_MANAGER=' + lm);
|
||
|
|
" > ../addresses.txt
|
||
|
|
. ../addresses.txt
|
||
|
|
|
||
|
|
# Get current block number as start block
|
||
|
|
START_BLOCK=$(cast block-number --rpc-url http://anvil:8545)
|
||
|
|
|
||
|
|
echo "=== Contract Deployment Complete ==="
|
||
|
|
echo "KRAIKEN: $KRAIKEN"
|
||
|
|
echo "STAKE: $STAKE"
|
||
|
|
echo "LIQUIDITY_MANAGER: $LIQUIDITY_MANAGER"
|
||
|
|
echo "START_BLOCK: $START_BLOCK"
|
||
|
|
|
||
|
|
# Build kraiken-lib BEFORE writing contracts.env
|
||
|
|
# (services wait for contracts.env, so kraiken-lib must be ready first)
|
||
|
|
echo "=== Building kraiken-lib (shared dependency) ==="
|
||
|
|
cd ../kraiken-lib
|
||
|
|
npm ci --ignore-scripts
|
||
|
|
./node_modules/.bin/tsc
|
||
|
|
cd ../onchain
|
||
|
|
|
||
|
|
# Write environment file for other services (absolute path for detached services)
|
||
|
|
{
|
||
|
|
echo "KRAIKEN=$KRAIKEN"
|
||
|
|
echo "STAKE=$STAKE"
|
||
|
|
echo "LIQUIDITY_MANAGER=$LIQUIDITY_MANAGER"
|
||
|
|
echo "START_BLOCK=$START_BLOCK"
|
||
|
|
echo "PONDER_RPC_URL_1=http://anvil:8545"
|
||
|
|
echo "DATABASE_URL=postgres://ponder:ponder_local@postgres:5432/ponder_local"
|
||
|
|
echo "RPC_URL=http://anvil:8545"
|
||
|
|
} > /woodpecker/src/contracts.env
|
||
|
|
|
||
|
|
# Write deployments-local.json for E2E tests
|
||
|
|
printf '{\n "contracts": {\n "Kraiken": "%s",\n "Stake": "%s",\n "LiquidityManager": "%s"\n }\n}\n' \
|
||
|
|
"$KRAIKEN" "$STAKE" "$LIQUIDITY_MANAGER" > deployments-local.json
|
||
|
|
echo "=== deployments-local.json written ==="
|
||
|
|
cat deployments-local.json
|
||
|
|
|
||
|
|
# Deployer and fee destination addresses
|
||
|
|
DEPLOYER_PK=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
|
||
|
|
DEPLOYER_ADDR=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
|
||
|
|
FEE_DEST=0xf6a3eef9088A255c32b6aD2025f83E57291D9011
|
||
|
|
WETH=0x4200000000000000000000000000000000000006
|
||
|
|
SWAP_ROUTER=0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4
|
||
|
|
MAX_UINT=0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||
|
|
|
||
|
|
echo "=== Funding LiquidityManager ==="
|
||
|
|
cast send --rpc-url http://anvil:8545 \
|
||
|
|
--private-key $DEPLOYER_PK \
|
||
|
|
"$LIQUIDITY_MANAGER" --value 0.1ether
|
||
|
|
|
||
|
|
echo "=== Granting recenter access ==="
|
||
|
|
cast rpc --rpc-url http://anvil:8545 anvil_impersonateAccount $FEE_DEST
|
||
|
|
cast send --rpc-url http://anvil:8545 --from $FEE_DEST --unlocked \
|
||
|
|
"$LIQUIDITY_MANAGER" "setRecenterAccess(address)" $DEPLOYER_ADDR
|
||
|
|
cast rpc --rpc-url http://anvil:8545 anvil_stopImpersonatingAccount $FEE_DEST
|
||
|
|
|
||
|
|
echo "=== Calling recenter() to seed liquidity ==="
|
||
|
|
cast send --rpc-url http://anvil:8545 --private-key $DEPLOYER_PK \
|
||
|
|
"$LIQUIDITY_MANAGER" "recenter()"
|
||
|
|
|
||
|
|
echo "=== Seeding application state (initial swap) ==="
|
||
|
|
# Wrap ETH to WETH
|
||
|
|
cast send --rpc-url http://anvil:8545 --private-key $DEPLOYER_PK \
|
||
|
|
$WETH "deposit()" --value 0.02ether
|
||
|
|
# Approve router
|
||
|
|
cast send --rpc-url http://anvil:8545 --private-key $DEPLOYER_PK \
|
||
|
|
$WETH "approve(address,uint256)" $SWAP_ROUTER $MAX_UINT
|
||
|
|
# Execute initial KRK swap
|
||
|
|
cast send --legacy --gas-limit 300000 --rpc-url http://anvil:8545 --private-key $DEPLOYER_PK \
|
||
|
|
$SWAP_ROUTER "exactInputSingle((address,address,uint24,address,uint256,uint256,uint160))" \
|
||
|
|
"($WETH,$KRAIKEN,10000,$DEPLOYER_ADDR,10000000000000000,0,0)"
|
||
|
|
|
||
|
|
# Fund txnBot wallet
|
||
|
|
TXNBOT_ADDR=0x70997970C51812dc3A010C7d01b50e0d17dc79C8
|
||
|
|
cast send --rpc-url http://anvil:8545 \
|
||
|
|
--private-key $DEPLOYER_PK \
|
||
|
|
--value 10ether \
|
||
|
|
$TXNBOT_ADDR
|
||
|
|
|
||
|
|
echo "TXNBOT_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" >> /woodpecker/src/contracts.env
|
||
|
|
|
||
|
|
echo "=== Bootstrap complete ==="
|
||
|
|
|
||
|
|
# Step 2: Wait for stack to be healthy (services run in background)
|
||
|
|
# Max 3 minutes - fail fast if services don't come up
|
||
|
|
- name: wait-for-stack
|
||
|
|
image: alpine:3.20
|
||
|
|
depends_on:
|
||
|
|
- bootstrap
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
apk add --no-cache curl
|
||
|
|
|
||
|
|
echo "=== Waiting for stack to be healthy (max 7 min) ==="
|
||
|
|
|
||
|
|
MAX_ATTEMPTS=84 # 84 * 5s = 420s = 7 minutes
|
||
|
|
ATTEMPT=0
|
||
|
|
|
||
|
|
while [ $ATTEMPT -lt $MAX_ATTEMPTS ]; do
|
||
|
|
ATTEMPT=$((ATTEMPT + 1))
|
||
|
|
PONDER_OK=0
|
||
|
|
WEBAPP_OK=0
|
||
|
|
LANDING_OK=0
|
||
|
|
CADDY_OK=0
|
||
|
|
|
||
|
|
# Check each service with verbose output on failure
|
||
|
|
# Ponder dev mode serves at root (/) - matches Dockerfile healthcheck
|
||
|
|
if curl -sf --max-time 3 http://ponder:42069/ > /dev/null 2>&1; then
|
||
|
|
PONDER_OK=1
|
||
|
|
fi
|
||
|
|
# Webapp configured with --base /app/
|
||
|
|
if curl -sf --max-time 3 http://webapp:5173/app/ > /dev/null 2>&1; then
|
||
|
|
WEBAPP_OK=1
|
||
|
|
fi
|
||
|
|
if curl -sf --max-time 3 http://landing:5174/ > /dev/null 2>&1; then
|
||
|
|
LANDING_OK=1
|
||
|
|
fi
|
||
|
|
# Caddy check: verify proxy is working by checking webapp through Caddy
|
||
|
|
# Use /app/ since it's a reliable known-good route (landing fallback can return 403 if not ready)
|
||
|
|
if curl -sf --max-time 3 http://caddy:8081/app/ > /dev/null 2>&1; then
|
||
|
|
CADDY_OK=1
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "[$(date +%T)] ($ATTEMPT/$MAX_ATTEMPTS) ponder=$PONDER_OK webapp=$WEBAPP_OK landing=$LANDING_OK caddy=$CADDY_OK"
|
||
|
|
|
||
|
|
if [ "$PONDER_OK" = "1" ] && [ "$WEBAPP_OK" = "1" ] && [ "$LANDING_OK" = "1" ] && [ "$CADDY_OK" = "1" ]; then
|
||
|
|
echo "All services healthy!"
|
||
|
|
echo "=== Stack is healthy ==="
|
||
|
|
exit 0
|
||
|
|
fi
|
||
|
|
|
||
|
|
sleep 5
|
||
|
|
done
|
||
|
|
|
||
|
|
echo "ERROR: Services did not become healthy within 7 minutes"
|
||
|
|
echo "Final status: ponder=$PONDER_OK webapp=$WEBAPP_OK landing=$LANDING_OK caddy=$CADDY_OK"
|
||
|
|
# Show more diagnostic info
|
||
|
|
echo "=== Diagnostic: checking individual endpoints ==="
|
||
|
|
echo "--- Ponder root (/) ---"
|
||
|
|
curl -v --max-time 5 http://ponder:42069/ 2>&1 | head -20 || true
|
||
|
|
echo "--- Webapp /app/ ---"
|
||
|
|
curl -v --max-time 5 http://webapp:5173/app/ 2>&1 | head -20 || true
|
||
|
|
echo "--- Landing / ---"
|
||
|
|
curl -v --max-time 5 http://landing:5174/ 2>&1 | head -20 || true
|
||
|
|
echo "--- Caddy / (landing via proxy) ---"
|
||
|
|
curl -v --max-time 5 http://caddy:8081/ 2>&1 | head -20 || true
|
||
|
|
exit 1
|
||
|
|
|
||
|
|
# Step 3: Run E2E tests
|
||
|
|
- name: run-e2e-tests
|
||
|
|
image: mcr.microsoft.com/playwright:v1.55.1-jammy
|
||
|
|
depends_on:
|
||
|
|
- wait-for-stack
|
||
|
|
timeout: 600
|
||
|
|
environment:
|
||
|
|
STACK_BASE_URL: http://caddy:8081
|
||
|
|
STACK_RPC_URL: http://caddy:8081/api/rpc
|
||
|
|
STACK_WEBAPP_URL: http://caddy:8081
|
||
|
|
STACK_GRAPHQL_URL: http://caddy:8081/api/graphql
|
||
|
|
CI: "true"
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eux
|
||
|
|
echo "=== Installing test dependencies ==="
|
||
|
|
npm config set fund false
|
||
|
|
npm config set audit false
|
||
|
|
npm ci --no-audit --no-fund
|
||
|
|
|
||
|
|
echo "=== Running E2E tests ==="
|
||
|
|
npx playwright test --reporter=list
|
||
|
|
|
||
|
|
# Step 4: Collect artifacts
|
||
|
|
- name: collect-artifacts
|
||
|
|
image: alpine:3.20
|
||
|
|
depends_on:
|
||
|
|
- run-e2e-tests
|
||
|
|
when:
|
||
|
|
status:
|
||
|
|
- success
|
||
|
|
- failure
|
||
|
|
commands:
|
||
|
|
- |
|
||
|
|
set -eu
|
||
|
|
apk add --no-cache tar gzip
|
||
|
|
mkdir -p artifacts
|
||
|
|
|
||
|
|
if [ -d playwright-report ]; then
|
||
|
|
tar -czf artifacts/playwright-report.tgz playwright-report
|
||
|
|
echo "✓ Playwright report archived"
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [ -d test-results ]; then
|
||
|
|
tar -czf artifacts/test-results.tgz test-results
|
||
|
|
echo "✓ Test results archived"
|
||
|
|
fi
|
||
|
|
|
||
|
|
ls -lh artifacts/ 2>/dev/null || echo "No artifacts"
|