This commit is contained in:
2026-05-19 17:38:23 +02:00
parent 99426c2050
commit efbd3bdd8a

View File

@@ -66,12 +66,12 @@ pipeline {
# ── playwright-stealth version check ─────────────── # ── playwright-stealth version check ───────────────
pip show playwright-stealth | grep -E "^(Name|Version)" pip show playwright-stealth | grep -E "^(Name|Version)"
python3 -c " python3 -c "
try: try:
from playwright_stealth import stealth_sync from playwright_stealth import stealth_sync
print('playwright_stealth OK (v1.x - stealth_sync)') print('playwright_stealth OK (v1.x - stealth_sync)')
except ImportError: except ImportError:
from playwright_stealth import Stealth from playwright_stealth import Stealth
print('playwright_stealth OK (v2.x - Stealth class)') print('playwright_stealth OK (v2.x - Stealth class)')
" "
# ── Sanity checks ────────────────────────────────── # ── Sanity checks ──────────────────────────────────
@@ -116,12 +116,13 @@ pipeline {
) )
]) { ]) {
sh ''' sh '''
set -euxo pipefail set -e
# Inject the secret cookies file into the workspace # Inject the secret cookies file into the workspace
cp "$TIKTOK_COOKIES_FILE" tiktok_cookies.json cp "$TIKTOK_COOKIES_FILE" tiktok_cookies.json
"${VENV_DIR}/bin/python" tiktok2bsky.py \ . venv/bin/activate
python3 tiktok2bsky.py \
--tiktok-handle "$TIKTOK_JIJANTESFC_HANDLE" \ --tiktok-handle "$TIKTOK_JIJANTESFC_HANDLE" \
--bsky-handle "$BSKY_JIJANTESFC_HANDLE" \ --bsky-handle "$BSKY_JIJANTESFC_HANDLE" \
--bsky-app-password "$BSKY_JIJANTESFC_APP_PASSWORD" \ --bsky-app-password "$BSKY_JIJANTESFC_APP_PASSWORD" \