diff --git a/jenkins/3catTw b/jenkins/3catTw index 06a6e7e..3a61bd4 100644 --- a/jenkins/3catTw +++ b/jenkins/3catTw @@ -20,17 +20,23 @@ pipeline { # Create a virtual environment named 'venv' python3 -m venv venv - # Activate it and install your packages + # Activate the virtual environment . venv/bin/activate + # Upgrade pip to ensure we have the latest version + pip install --upgrade pip + # Install required packages pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy + # Check if moviepy is installed + pip list | grep moviepy || { echo 'MoviePy installation failed!'; exit 1; } + # Check if FFmpeg is installed ffmpeg -version || { echo 'FFmpeg is not installed!'; exit 1; } - # Check if moviepy is installed - python3 -c "import moviepy.editor" || { echo 'MoviePy installation failed!'; exit 1; } + # Verify that moviepy can be imported + python3 -c "import moviepy.editor" || { echo 'MoviePy import failed!'; exit 1; } # Install the local browser binaries for this environment playwright install chromium @@ -66,4 +72,4 @@ pipeline { } } } -} +} \ No newline at end of file