From 63b93d089f3788bcb6db7682bd0232bb3b1a480f Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Tue, 30 Jun 2026 15:41:52 +0200 Subject: [PATCH] 3CatEuforia --- jenkins/3CatEuforiaTikTok | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/jenkins/3CatEuforiaTikTok b/jenkins/3CatEuforiaTikTok index dba8792..db7f971 100644 --- a/jenkins/3CatEuforiaTikTok +++ b/jenkins/3CatEuforiaTikTok @@ -35,11 +35,10 @@ pipeline { python3 -m venv venv # ── Upgrade pip toolchain ────────────────────────── - . venv/bin/activate - pip install --upgrade pip wheel setuptools + venv/bin/pip install --upgrade pip wheel setuptools # ── Core dependencies ────────────────────────────── - pip install -U \ + venv/bin/pip install -U \ atproto \ playwright \ playwright-stealth \ @@ -53,19 +52,17 @@ pipeline { grapheme # ── yt-dlp: always upgrade to latest ────────────── - # TikTok extractor breaks frequently — latest is required - pip install --upgrade yt-dlp - pip show yt-dlp | grep -E "^(Name|Version)" + venv/bin/pip install --upgrade yt-dlp + venv/bin/pip show yt-dlp | grep -E "^(Name|Version)" # ── curl_cffi: TikTok impersonation (REQUIRED) ───── - # Without this yt-dlp cannot bypass TikTok bot detection - pip install --upgrade curl-cffi - pip show curl-cffi | grep -E "^(Name|Version)" - python3 -c "import curl_cffi; print('curl_cffi OK')" + venv/bin/pip install --upgrade curl-cffi + venv/bin/pip show curl-cffi | grep -E "^(Name|Version)" + venv/bin/python3 -c "import curl_cffi; print('curl_cffi OK')" # ── playwright-stealth version check ─────────────── - pip show playwright-stealth | grep -E "^(Name|Version)" - python3 -c " + venv/bin/pip show playwright-stealth | grep -E "^(Name|Version)" + venv/bin/python3 -c " try: from playwright_stealth import stealth_sync print('playwright_stealth OK (v1.x - stealth_sync)') @@ -75,19 +72,20 @@ except ImportError: " # ── Sanity checks ────────────────────────────────── - python3 -c "import atproto; print('atproto OK')" - python3 -c "import playwright; print('playwright OK')" - python3 -c "import yt_dlp; print('yt_dlp OK')" - python3 -c "import httpx; print('httpx OK')" - python3 -c "import arrow; print('arrow OK')" - python3 -c "import moviepy; print('moviepy OK')" + venv/bin/python3 -c "import atproto; print('atproto OK')" + venv/bin/python3 -c "import playwright; print('playwright OK')" + venv/bin/python3 -c "import yt_dlp; print('yt_dlp OK')" + venv/bin/python3 -c "import httpx; print('httpx OK')" + venv/bin/python3 -c "import arrow; print('arrow OK')" + venv/bin/python3 -c "import moviepy; print('moviepy OK')" # ── System tools ─────────────────────────────────── ffmpeg -version | head -1 ffprobe -version | head -1 # ── Playwright browser binaries ──────────────────── - playwright install chromium + PLAYWRIGHT_BROWSERS_PATH=/var/jenkins_home/.playwright-browsers \ + venv/bin/playwright install chromium ''' } }