Added new yml
This commit is contained in:
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,19 +17,31 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Run Script') {
|
||||
steps {
|
||||
// Securely inject Jenkins credentials as environment variables
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,19 +17,31 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('Run Script') {
|
||||
steps {
|
||||
// Securely inject Jenkins credentials as environment variables
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,12 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -15,9 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ pipeline {
|
||||
agent any
|
||||
|
||||
triggers {
|
||||
// 'H' balances the load on Jenkins, running roughly every 30 minutes
|
||||
// 'H' tells Jenkins to balance the load, running roughly every 30 minutes
|
||||
cron('H/30 * * * *')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout Code') {
|
||||
steps {
|
||||
// Pulls the code from the repository where this Jenkinsfile lives
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
@@ -16,14 +17,26 @@ pipeline {
|
||||
stage('Setup Python & Install Dependencies') {
|
||||
steps {
|
||||
sh '''
|
||||
set -e # Exit immediately if a command exits with a non-zero status
|
||||
|
||||
# Create a virtual environment named 'venv'
|
||||
python3 -m venv venv
|
||||
|
||||
# Activate it and install the required packages
|
||||
. venv/bin/activate
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv -q
|
||||
# Activate the virtual environment and install dependencies
|
||||
. venv/bin/activate && \
|
||||
pip install --upgrade pip && \
|
||||
pip install -U atproto tweety-ns playwright httpx arrow python-dotenv moviepy
|
||||
|
||||
# Install the local browser binaries for this specific environment
|
||||
# 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; }
|
||||
|
||||
# Verify that moviepy can be imported
|
||||
python3 -c "import moviepy" || { echo 'MoviePy import failed!'; exit 1; }
|
||||
|
||||
# Install the local browser binaries for this environment
|
||||
playwright install chromium
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user